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:
parent
34bf17ad27
commit
01a23b0553
@ -297,7 +297,7 @@ class DBusEventSource extends EventSourceBase {
|
||||
|
||||
let changed = false;
|
||||
for (const id of ids)
|
||||
changed |= this._events.delete(id);
|
||||
changed = changed || this._events.delete(id);
|
||||
|
||||
if (changed)
|
||||
this.emit('changed');
|
||||
@ -310,7 +310,7 @@ class DBusEventSource extends EventSourceBase {
|
||||
let changed = false;
|
||||
for (const id of this._events.keys()) {
|
||||
if (id.startsWith(sourceUid))
|
||||
changed |= this._events.delete(id);
|
||||
changed = changed || this._events.delete(id);
|
||||
}
|
||||
|
||||
if (changed)
|
||||
|
Loading…
Reference in New Issue
Block a user