Skip to content

Commit

Permalink
sysinfo: add wael's recommendation
Browse files Browse the repository at this point in the history
  • Loading branch information
lunarlattice0 committed Oct 18, 2023
1 parent e1c5a8c commit d23102f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions sysinfo/sysinfo.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,6 @@ func NewGPUs() (gpus GPUs) {
}

func InFlatpak() bool {
if _, err := os.Stat("/.flatpak-info"); err == nil {
return true
}
return false
_, err := os.Stat("/.flatpak-info")
return err == nil
}

0 comments on commit d23102f

Please sign in to comment.