make linter happy

This commit is contained in:
Jef Steelant
2022-11-10 09:19:49 +01:00
parent 8f4f67f69f
commit 9f0a14c22b
3 changed files with 5 additions and 4 deletions

View File

@ -112,13 +112,13 @@ void IPC::registerForIPC(const std::string& ev, EventHandler* ev_handler) {
}
void IPC::unregisterForIPC(EventHandler* ev_handler) {
if (!ev_handler) {
if (!ev_handler) {
return;
}
callbackMutex.lock();
for(auto it = callbacks.begin(); it != callbacks.end(); ) {
for (auto it = callbacks.begin(); it != callbacks.end();) {
auto it_current = it;
it++;
auto& [eventname, handler] = *it_current;