mirror of
https://github.com/rwinkhart/go-boilerplate.git
synced 2026-08-27 20:36:29 -04:00
Remove unused errors
This commit is contained in:
@@ -12,6 +12,4 @@ const (
|
||||
ErrorRead = 101
|
||||
ErrorWrite = 102
|
||||
ErrorTargetNotFound = 105
|
||||
ErrorTargetWrongType = 107
|
||||
ErrorOther = 111
|
||||
)
|
||||
|
||||
+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