Fixed bug where some whitespace was incorrectly removed.

main
diff 2020-11-13 06:28:07 +00:00
parent 2438bc43c0
commit 8383b65de4
1 changed files with 2 additions and 2 deletions

View File

@ -110,8 +110,8 @@ func SetStatus(args []string) error {
return err return err
} }
// Strip whitespace // Strip whitespace from right
input = strings.TrimSpace(input) input = strings.TrimRight(input, " \n\t\r")
// Remove file on blank input // Remove file on blank input
if input == "" { if input == "" {