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 7, 2021
1 parent 93abdd8 commit 591b996
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 591b996

Please sign in to comment.