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

Commit 917e2af

Browse files
JiaLiPassionmhevery
authored andcommitted
fix(lint): fix #1168, remove unused = null code (#1171)
1 parent 8f78b55 commit 917e2af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: lib/common/promise.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -293,10 +293,10 @@ Zone.__load_patch('ZoneAwarePromise', (global: any, Zone: ZoneType, api: _ZonePr
293293
reject = rej;
294294
});
295295
function onResolve(value: any) {
296-
promise && (promise = null || resolve(value));
296+
resolve(value);
297297
}
298298
function onReject(error: any) {
299-
promise && (promise = null || reject(error));
299+
reject(error);
300300
}
301301

302302
for (let value of values) {

0 commit comments

Comments
 (0)