Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
lucifercr07 committed Dec 4, 2024
1 parent 99bc18b commit d8e49cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ func GetDefaultParentDirPath() string {
}

func expandHomeDirDarwin(path string) string {
if len(path) > 0 && path[0] == '~' {
if path != "" && path[0] == '~' {
home, err := os.UserHomeDir()
if err != nil {
return path // Fallback if home directory can't be resolved
Expand Down

0 comments on commit d8e49cb

Please sign in to comment.