Skip to content

Commit 59c0689

Browse files
alan-agius4mhevery
authored andcommitted
refactor(ngcc): remove redundant await (angular#35686)
Inside an async function, return await is not needed. Since the return value of an async function is always wrapped in Promise.resolve, PR Close angular#35686
1 parent 8f5b7f3 commit 59c0689

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/compiler-cli/ngcc/src/execution/lock_file.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ export class LockFileAsync extends LockFileBase {
169169
*/
170170
async lock<T>(fn: () => Promise<T>): Promise<T> {
171171
await this.create();
172-
return await fn().finally(() => this.remove());
172+
return fn().finally(() => this.remove());
173173
}
174174

175175
protected async create() {

0 commit comments

Comments
 (0)