mirror of
https://github.com/rwinkhart/go-boilerplate.git
synced 2026-09-06 00:57:16 -04:00
Remove unused errors
This commit is contained in:
+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