Remove unused errors

This commit is contained in:
2025-06-01 13:53:29 -04:00
parent 799fafafe9
commit d6820580d9
2 changed files with 4 additions and 6 deletions
-2
View File
@@ -12,6 +12,4 @@ const (
ErrorRead = 101
ErrorWrite = 102
ErrorTargetNotFound = 105
ErrorTargetWrongType = 107
ErrorOther = 111
)
+1 -1
View File
@@ -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)
}