Skip to content

Commit 327c116

Browse files
authored
fix: correct jlv config read from the home directory (#50)
1 parent 239e2ce commit 327c116

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/jlv/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ func readConfig() (*config.Config, error) {
4747
}
4848

4949
homeDir, err := os.UserHomeDir()
50-
if err != nil {
50+
if err == nil {
5151
paths = append(paths, path.Join(homeDir, configFileName))
5252
}
5353

0 commit comments

Comments
 (0)