Skip to content

Commit 61a3e6c

Browse files
15cmjmattheis
authored andcommitted
fix(config): User config should be looked for when the user exists
1 parent 170fbab commit 61a3e6c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

config/locations.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
func GetLocations() (res []string) {
1010
res = append(res, "./cli.json")
1111

12-
if usr, err := user.Current(); err != nil {
12+
if usr, err := user.Current(); err == nil {
1313
res = append(res, filepath.Join(usr.HomeDir, ".gotify", "cli.json"))
1414
}
1515

0 commit comments

Comments
 (0)