Skip to content

Commit 9a2bfc5

Browse files
committed
Refactor: based: Drop based_process_request last cib_discard_reply check
It's redundant. If needs_reply is true, then cib_discard_reply is not set. (If cib_discard_reply is set, then we set needs_reply and local_notify to false earlier in based_process_request().) Signed-off-by: Reid Wahl <nrwahl@protonmail.com>
1 parent efbef94 commit 9a2bfc5

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

daemons/based/based_callbacks.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -848,8 +848,7 @@ based_process_request(xmlNode *request, bool privileged,
848848
pcmk__s(originator, "local"), client_name, call_id,
849849
(local_notify? " with local notification" : ""));
850850

851-
} else if (needs_reply && !stand_alone && (client == NULL)
852-
&& !pcmk__is_set(call_options, cib_discard_reply)) {
851+
} else if (needs_reply && !stand_alone && (client == NULL)) {
853852
send_peer_reply(reply, originator);
854853
}
855854

0 commit comments

Comments
 (0)