diff --git a/back/1globals.go b/back/1globals.go index 2125bfd..c334ddb 100644 --- a/back/1globals.go +++ b/back/1globals.go @@ -9,9 +9,7 @@ const ( AnsiError = "\033[38;5;9m" AnsiReset = "\033[0m" - ErrorRead = 101 - ErrorWrite = 102 - ErrorTargetNotFound = 105 - ErrorTargetWrongType = 107 - ErrorOther = 111 + ErrorRead = 101 + ErrorWrite = 102 + ErrorTargetNotFound = 105 ) diff --git a/back/files.go b/back/files.go index 3bf32a3..b93c4b0 100644 --- a/back/files.go +++ b/back/files.go @@ -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) }