extensionBase: Fix issue in lookupByURL()

The lookupByUUID() implementations in the subtypes return null
when the lookup failed, not undefined.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2879>
This commit is contained in:
Andrew Zaech 2023-08-09 18:07:43 +00:00 committed by Marge Bot
parent a703e192ed
commit 09525ece8c

View File

@ -28,7 +28,7 @@ export class ExtensionBase {
const dirName = GLib.path_get_basename(path);
const extension = this.lookupByUUID(dirName);
if (extension !== undefined)
if (extension !== null)
return extension;
} while (path !== '/');