mirror of
https://github.com/rwinkhart/go-boilerplate.git
synced 2026-10-26 21:39:56 -04:00
Remove unused errors
This commit is contained in:
1 parent
799fafafe9
commit
d6820580d9
2 files changed
+4
-6
No files matched your search
+1
-1
@@ -39,7 +39,7 @@ func CreateTempFile() (*os.File, error) {
|
||||
return tempFile, nil
|
||||
}
|
||||
|
||||
// ExpandPathWithHome, given a path (as a string) containing "~", returns the path with "~" expanded to the user's home directory.
|
||||
// ExpandPathWithHome returns the given path with "~" expanded to the user's home directory.
|
||||
func ExpandPathWithHome(path string) string {
|
||||
return strings.Replace(path, "~", Home, 1)
|
||||
}
|
||||
Reference in new issue
Block a user