Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
fix(lint): fix #1168, remove unused = null code (#1171)
Browse files Browse the repository at this point in the history
  • Loading branch information
JiaLiPassion authored and mhevery committed Mar 11, 2019
1 parent 8f78b55 commit 917e2af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/common/promise.ts
Original file line number Diff line number Diff line change
Expand Up @@ -293,10 +293,10 @@ Zone.__load_patch('ZoneAwarePromise', (global: any, Zone: ZoneType, api: _ZonePr
reject = rej;
});
function onResolve(value: any) {
promise && (promise = null || resolve(value));
resolve(value);
}
function onReject(error: any) {
promise && (promise = null || reject(error));
reject(error);
}

for (let value of values) {
Expand Down

0 comments on commit 917e2af

Please sign in to comment.