mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
make linter happy
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user