From d6820580d9214080ad7176d2769d9857e072de45 Mon Sep 17 00:00:00 2001 From: Randall Winkhart Date: Sun, 1 Jun 2025 13:53:29 -0400 Subject: [PATCH] Remove unused errors --- back/1globals.go | 8 +++----- back/files.go | 2 +- 2 files changed, 4 insertions(+), 6 deletions(-) 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) }