Fixed bug where some whitespace was incorrectly removed.

This commit is contained in:
diff 2020-11-13 06:28:07 +00:00
parent 2438bc43c0
commit 8383b65de4

View File

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