fix(@angular/cli): remove unnecessary promise around "open"

This commit is contained in:
Dominic Elm 2021-02-01 09:05:21 +01:00 committed by Alan Agius
parent aae0083b77
commit 33ee97625e

View File

@ -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,
});
}
}