calendar: Use boolean operations instead of bitwise operators

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2039>
This commit is contained in:
Evan Welsh 2021-10-30 15:30:32 -07:00 committed by Marge Bot
parent 34bf17ad27
commit 01a23b0553

View File

@ -297,7 +297,7 @@ class DBusEventSource extends EventSourceBase {
let changed = false; let changed = false;
for (const id of ids) for (const id of ids)
changed |= this._events.delete(id); changed = changed || this._events.delete(id);
if (changed) if (changed)
this.emit('changed'); this.emit('changed');
@ -310,7 +310,7 @@ class DBusEventSource extends EventSourceBase {
let changed = false; let changed = false;
for (const id of this._events.keys()) { for (const id of this._events.keys()) {
if (id.startsWith(sourceUid)) if (id.startsWith(sourceUid))
changed |= this._events.delete(id); changed = changed || this._events.delete(id);
} }
if (changed) if (changed)