From 9cd657cd75ca5b29c4e05511e3e9b2a8ceb87d47 Mon Sep 17 00:00:00 2001 From: Ismael Martinez Ramos Date: Tue, 21 Jan 2025 14:50:47 +0000 Subject: [PATCH] fixing code analisys complain --- app/menus/tray.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/menus/tray.js b/app/menus/tray.js index 17da263..96d8c85 100644 --- a/app/menus/tray.js +++ b/app/menus/tray.js @@ -34,7 +34,9 @@ class ApplicationTray { } close() { - !this.tray.isDestroyed() ? this.tray.destroy() : null; + if (!this.tray.isDestroyed()) { + this.tray.destroy() + } } } exports = module.exports = ApplicationTray;