From 111f7424c704fd50fb8b2bbd003d7c347048f14f Mon Sep 17 00:00:00 2001 From: Mark Wubben Date: Thu, 24 Mar 2016 13:07:15 +0000 Subject: [PATCH] reformat ternary statements that break source map application --- index.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index 892759a..dae323a 100644 --- a/index.js +++ b/index.js @@ -41,7 +41,9 @@ export class Chan { } } else { assert(item.type == TYPE_VALUE || item.type == TYPE_ERROR) - let fn = item.type == TYPE_VALUE ? fnVal : fnErr + let fn = item.type == TYPE_VALUE + ? fnVal + : fnErr item.fnVal && item.fnVal() fn && fn(item.value) if (this._state != STATE_CLOSED) { @@ -62,8 +64,10 @@ export class Chan { this._triggerWaiters(true) this._emitDrain() } - - return needsCancelFn ? () => { item.fnVal = item.fnErr = undefined } : nop + + return needsCancelFn + ? () => item.fnVal = item.fnErr = undefined + : nop; } _takeFromWaitingPublisher() {