diff --git a/js/ui/status/thunderbolt.js b/js/ui/status/thunderbolt.js index df3622393..9e33c21f5 100644 --- a/js/ui/status/thunderbolt.js +++ b/js/ui/status/thunderbolt.js @@ -265,9 +265,8 @@ class Indicator extends SystemIndicator { this._notification = null; }); this._notification.connect('activated', () => { - let app = Shell.AppSystem.get_default().lookup_app('gnome-thunderbolt-panel.desktop'); - if (app) - app.activate(); + const app = Shell.AppSystem.get_default().lookup_app('gnome-thunderbolt-panel.desktop'); + app?.activate(); }); source.showNotification(this._notification); }