Skip to content

Commit 08af3e8

Browse files
committed
refactor(mergeMapTo): remove explicit errorobject checking
1 parent 23f21e0 commit 08af3e8

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/operators/mergeMapTo-support.ts

+3-6
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,9 @@ export class MergeMapToSubscriber<T, R, R2> extends OuterSubscriber<T, R> {
3838
const index = this.index++;
3939
const ish = this.ish;
4040
const destination = this.destination;
41-
if (ish === errorObject) {
42-
destination.error(ish.e);
43-
} else {
44-
this.active++;
45-
this._innerSub(ish, destination, resultSelector, value, index);
46-
}
41+
42+
this.active++;
43+
this._innerSub(ish, destination, resultSelector, value, index);
4744
} else {
4845
this.buffer.push(value);
4946
}

0 commit comments

Comments
 (0)