Skip to content

Commit

Permalink
fix: rm useless error
Browse files Browse the repository at this point in the history
Signed-off-by: zongz <[email protected]>
  • Loading branch information
zong-zhe committed Feb 6, 2025
1 parent dc2ef81 commit ebff19c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions go/path/home.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
package path

import (
"errors"
"os"
"os/user"
"runtime"
Expand Down Expand Up @@ -71,7 +70,7 @@ func HomeDirWithError() (string, error) {
}

// We've got nothing
return "", errors.New("no valid home directory found")
return "", nil
}
home := os.Getenv("HOME")
if home != "" {
Expand Down

0 comments on commit ebff19c

Please sign in to comment.