Skip to content

Commit

Permalink
Add curly braces
Browse files Browse the repository at this point in the history
  • Loading branch information
helander committed Jan 16, 2024
1 parent 5cafa6e commit 7dcb498
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/platform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ export class NodeRedHomebridgePlatform implements DynamicPlatformPlugin {
};

// On first startup, create a hb-conf node representing the local homebridge.
if (!fs.existsSync(settings.userDir)) fs.mkdirSync(settings.userDir);
if (!fs.existsSync(settings.userDir)) {
fs.mkdirSync(settings.userDir);
}
const flowFilePath = `${settings.userDir}/${settings.flowFile}`;
if (!fs.existsSync(flowFilePath)) {
this.log.info('Flows file did not exist => create one with a hb-config included');
Expand Down

0 comments on commit 7dcb498

Please sign in to comment.