mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-19 20:52:06 +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}`;
|
searchUrl = `https://${domain}/docs?search=${options.keyword}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
// We should wrap `open` in a new Promise because `open` is already resolved
|
await open(searchUrl, {
|
||||||
await new Promise(() => {
|
wait: false,
|
||||||
open(searchUrl, {
|
|
||||||
wait: false,
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user