kitty-tool @: Fix extra newline being printed when a command returns no response
This commit is contained in:
parent
4969611bdb
commit
63a08dc6cc
@ -228,7 +228,9 @@ func send_rc_command(io_data *rc_io_data) (err error) {
|
||||
if response.Data.is_string && io_data.string_response_is_err {
|
||||
return fmt.Errorf("%s", response.Data.as_str)
|
||||
}
|
||||
fmt.Println(strings.TrimRight(response.Data.as_str, "\n \t"))
|
||||
if response.Data.as_str != "" {
|
||||
fmt.Println(strings.TrimRight(response.Data.as_str, "\n \t"))
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user