js: Always use SOURCE_CONTINUE/SOURCE_REMOVE in source functions

The constants are more self-explanatory (and therefore readable)
than plain true/false.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell-extensions/-/merge_requests/435>
This commit is contained in:
Florian Müllner
2025-11-02 19:53:44 +01:00
parent 14e847102f
commit 30347ea701
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -267,7 +267,7 @@ export class PlacesManager extends EventEmitter {
GLib.PRIORITY_DEFAULT, 100, () => {
this._bookmarkTimeoutId = 0;
this._reloadBookmarks();
return false;
return GLib.SOURCE_REMOVE;
});
});
+1 -1
View File
@@ -1476,7 +1476,7 @@ class WindowList extends St.Widget {
this._dndWindow = null;
this._dndTimeoutId = 0;
return false;
return GLib.SOURCE_REMOVE;
}
_onDestroy() {