Fixed bug where some whitespace was incorrectly removed.
parent
2438bc43c0
commit
8383b65de4
4
main.go
4
main.go
|
@ -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 == "" {
|
||||||
|
|
Loading…
Reference in New Issue