Skip to content

Commit

Permalink
refactor: Roll back change as asyncapi#869 proposed already
Browse files Browse the repository at this point in the history
Open PR asyncapi#869 already proposes this change.
  • Loading branch information
trx40 committed Nov 7, 2023
1 parent 695a74c commit 03790db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/flags.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ export const watchFlag = (description?: string) => {
return Flags.boolean({
default: false,
char: 'w',
description: description ?? 'Enable watch mode',
description: description || 'Enable watch mode',
});
};
2 changes: 1 addition & 1 deletion src/globals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export const specWatcher = (params: SpecWatcherParams) => {
await params.handler.catch(err);
}
});
CHOKIDAR_INSTANCE_STORE.set(params.label ?? '_default', true);
CHOKIDAR_INSTANCE_STORE.set(params.label || '_default', true);
} catch (error) {
console.log(error);
}
Expand Down

0 comments on commit 03790db

Please sign in to comment.