From dbb78820b3b8d5c72ed9477202dab5ec14e3ac86 Mon Sep 17 00:00:00 2001 From: Naz Date: Thu, 23 Sep 2021 18:39:43 +0200 Subject: [PATCH] Removed unnecessary error parameter in bridge no issue - The error parameter is passed arround by never used. Removed it to have less type check errors --- core/bridge.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/bridge.js b/core/bridge.js index 7d4fd28cca..d8c38e855a 100644 --- a/core/bridge.js +++ b/core/bridge.js @@ -40,7 +40,7 @@ class Bridge { return themeEngine.getActive(); } - activateTheme(loadedTheme, checkedTheme, error) { + activateTheme(loadedTheme, checkedTheme) { let settings = { locale: settingsCache.get('lang') }; @@ -53,7 +53,7 @@ class Bridge { previousGhostAPI = this.getActiveTheme().engine('ghost-api'); } - themeEngine.setActive(settings, loadedTheme, checkedTheme, error); + themeEngine.setActive(settings, loadedTheme, checkedTheme); const currentGhostAPI = this.getActiveTheme().engine('ghost-api'); if (previousGhostAPI !== undefined && (previousGhostAPI !== currentGhostAPI)) {