We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb17cff commit ddfaea0Copy full SHA for ddfaea0
main_linux.go
@@ -56,7 +56,7 @@ type battery struct {
56
}
57
58
func (b *battery) has(variable string) (bool, error) {
59
- _, err := os.Stat(filepath.Join(b.root, variable))
+ _, err := os.Stat(b.path(variable))
60
if err != nil {
61
if errors.Is(err, fs.ErrNotExist) {
62
return false, nil
0 commit comments