Skip to content

Commit 33ee976

Browse files
d3lmalan-agius4
authored andcommitted
fix(@angular/cli): remove unnecessary promise around "open"
1 parent aae0083 commit 33ee976

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

packages/angular/cli/commands/doc-impl.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,8 @@ export class DocCommand extends Command<DocCommandSchema> {
5050
searchUrl = `https://${domain}/docs?search=${options.keyword}`;
5151
}
5252

53-
// We should wrap `open` in a new Promise because `open` is already resolved
54-
await new Promise(() => {
55-
open(searchUrl, {
56-
wait: false,
57-
});
53+
await open(searchUrl, {
54+
wait: false,
5855
});
5956
}
6057
}

0 commit comments

Comments
 (0)