kitty-tool @: Fix extra newline being printed when a command returns no response
This commit is contained in:
parent
4969611bdb
commit
63a08dc6cc
1 changed files with 3 additions and 1 deletions
|
|
@ -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…
Reference in a new issue