Skip to content

Commit

Permalink
refactor(Observable): remove unnecessary if
Browse files Browse the repository at this point in the history
there is an unnecessary if in the pipe, remove it

ReactiveX#6504
  • Loading branch information
hgaleh committed Jul 11, 2021
1 parent e04dc57 commit 45dc38d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/internal/Observable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ export class Observable<T> implements Subscribable<T> {
* ```
*/
pipe(...operations: OperatorFunction<any, any>[]): Observable<any> {
return operations.length ? pipeFromArray(operations)(this) : this;
return pipeFromArray(operations)(this);
}

/* tslint:disable:max-line-length */
Expand Down

0 comments on commit 45dc38d

Please sign in to comment.