From 978f315924ed859aaf91bf6f7c708f682901d672 Mon Sep 17 00:00:00 2001 From: foxriver76 Date: Fri, 5 Jul 2024 00:19:43 +0200 Subject: [PATCH] fix consistent return --- src-admin/src/components/ConfigHandler.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src-admin/src/components/ConfigHandler.tsx b/src-admin/src/components/ConfigHandler.tsx index 29354e4b..31d2e8e7 100644 --- a/src-admin/src/components/ConfigHandler.tsx +++ b/src-admin/src/components/ConfigHandler.tsx @@ -237,7 +237,7 @@ class ConfigHandler { let devicesAndBridges: Record; let controllerObj: ioBroker.FolderObject | null = null; if (!this.socket) { - return; + return undefined; } try { @@ -246,7 +246,7 @@ class ConfigHandler { `matter.${this.instance}.`, `matter.${this.instance}.\u9999`, ); - } catch (e) { + } catch { devicesAndBridges = {}; } @@ -254,7 +254,7 @@ class ConfigHandler { controllerObj = (await this.socket.getObject( `matter.${this.instance}.controller`, )) as ioBroker.FolderObject | null; - } catch (e) { + } catch { // ignore } if (!controllerObj) { @@ -324,7 +324,7 @@ class ConfigHandler { this.commissioning.devices[parts[3]] = !!commissioning[id]?.val; } }); - } catch (e) { + } catch { // ignore }