duplicate error check

This commit is contained in:
2025-08-14 20:51:14 +02:00
parent 051b68c266
commit b21d8ebed9

View File

@@ -317,10 +317,6 @@ func switchFocus(id int, sock net.Conn) error {
// send switch focus command
err := sendHeaderIPC(sock, IPC_RUN_COMMAND, uint32(len(command)))
if err != nil {
return err
}
if err != nil {
return fmt.Errorf("failed to send run_command to IPC %w", err)
}