Skip to content

Commit

Permalink
fix consistent return
Browse files Browse the repository at this point in the history
  • Loading branch information
foxriver76 committed Jul 4, 2024
1 parent 95ada79 commit 978f315
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src-admin/src/components/ConfigHandler.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ class ConfigHandler {
let devicesAndBridges: Record<string, ioBroker.ChannelObject>;
let controllerObj: ioBroker.FolderObject | null = null;
if (!this.socket) {
return;
return undefined;
}

try {
Expand All @@ -246,15 +246,15 @@ class ConfigHandler {
`matter.${this.instance}.`,
`matter.${this.instance}.\u9999`,
);
} catch (e) {
} catch {
devicesAndBridges = {};
}

try {
controllerObj = (await this.socket.getObject(
`matter.${this.instance}.controller`,
)) as ioBroker.FolderObject | null;
} catch (e) {
} catch {
// ignore
}
if (!controllerObj) {
Expand Down Expand Up @@ -324,7 +324,7 @@ class ConfigHandler {
this.commissioning.devices[parts[3]] = !!commissioning[id]?.val;
}
});
} catch (e) {
} catch {
// ignore
}

Expand Down

0 comments on commit 978f315

Please sign in to comment.