[gnome-shell] calendar: Use boolean operations instead of bitwise operators
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] calendar: Use boolean operations instead of bitwise operators
- Date: Wed, 17 Nov 2021 10:18:29 +0000 (UTC)
commit 01a23b0553ad9f4cd5d13e24c2b29512e8ee02e9
Author: Evan Welsh <contact evanwelsh com>
Date: Sat Oct 30 15:30:32 2021 -0700
calendar: Use boolean operations instead of bitwise operators
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2039>
js/ui/calendar.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/js/ui/calendar.js b/js/ui/calendar.js
index 8ccc73d709..ae312c6c08 100644
--- a/js/ui/calendar.js
+++ b/js/ui/calendar.js
@@ -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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]