Skip to content

Commit 394967f

Browse files
fix: remove unnecessary await from startPreview call (#1917)
Co-authored-by: ashutoshsao <ashutoshsao17@gmail.com> Co-authored-by: Souvik De <souvikde.ns@gmail.com>
1 parent 33a8dc3 commit 394967f

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.changeset/smooth-doors-thank.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
'@asyncapi/cli': patch
3+
---
4+
5+
fix: remove unnecessary await from startPreview call
6+
7+
The startPreview function returns void, not a Promise, so awaiting it
8+
was incorrect and triggered a linter error. This matches the pattern
9+
used in the studio command.

src/apps/cli/commands/start/preview.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export default class PreviewStudio extends Command {
3737
}
3838
}
3939
this.metricsMetadata.port = previewPort;
40-
await startPreview(
40+
startPreview(
4141
filePath as string,
4242
flags.base,
4343
flags.baseDir,

0 commit comments

Comments
 (0)