From 917e2afee39d04f5f0fd692cae3045fa04f20ef2 Mon Sep 17 00:00:00 2001 From: JiaLiPassion Date: Tue, 12 Mar 2019 05:27:14 +0900 Subject: [PATCH] fix(lint): fix #1168, remove unused = null code (#1171) --- lib/common/promise.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/common/promise.ts b/lib/common/promise.ts index 598ade3cf..a2910d387 100644 --- a/lib/common/promise.ts +++ b/lib/common/promise.ts @@ -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) {