Skip to content

Commit

Permalink
refactor(expand): remove superfluous _isScalar check
Browse files Browse the repository at this point in the history
This was removed because it was redundant and it could cause errors, but I was unable to
produce any, I think because of the nature of the operator.
  • Loading branch information
benlesh committed Feb 10, 2016
1 parent 00db1ca commit 56c92e1
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/operator/expand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,8 @@ export class ExpandSubscriber<T, R> extends OuterSubscriber<T, R> {
}

private subscribeToProjection(result: any, value: T, index: number): void {
if (result._isScalar) {
this._next(result.value);
} else {
this.active++;
this.add(subscribeToResult<T, R>(this, result, value, index));
}
this.active++;
this.add(subscribeToResult<T, R>(this, result, value, index));
}

protected _complete(): void {
Expand Down

0 comments on commit 56c92e1

Please sign in to comment.