mirror of
https://codeberg.org/scip/swaycycle.git
synced 2025-12-16 20:11:02 +01:00
duplicate error check
This commit is contained in:
4
main.go
4
main.go
@@ -317,10 +317,6 @@ func switchFocus(id int, sock net.Conn) error {
|
|||||||
|
|
||||||
// send switch focus command
|
// send switch focus command
|
||||||
err := sendHeaderIPC(sock, IPC_RUN_COMMAND, uint32(len(command)))
|
err := sendHeaderIPC(sock, IPC_RUN_COMMAND, uint32(len(command)))
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("failed to send run_command to IPC %w", err)
|
return fmt.Errorf("failed to send run_command to IPC %w", err)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user