mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-18 11:44:05 +08:00
fix(@angular/cli): remove unnecessary promise around "open"
This commit is contained in:
parent
aae0083b77
commit
33ee97625e
@ -50,11 +50,8 @@ export class DocCommand extends Command<DocCommandSchema> {
|
||||
searchUrl = `https://${domain}/docs?search=${options.keyword}`;
|
||||
}
|
||||
|
||||
// We should wrap `open` in a new Promise because `open` is already resolved
|
||||
await new Promise(() => {
|
||||
open(searchUrl, {
|
||||
wait: false,
|
||||
});
|
||||
await open(searchUrl, {
|
||||
wait: false,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user