From 502a5923621d8fa14ca1a1a4596cc4f52089d802 Mon Sep 17 00:00:00 2001 From: Julian Sparber Date: Tue, 13 Feb 2024 16:00:43 +0100 Subject: [PATCH] status/thunderbolt: Small style cleanup Part-of: --- js/ui/status/thunderbolt.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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); }