Skip to content

Commit

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

#6504
  • Loading branch information
Hojjat authored Jul 14, 2021
1 parent dd8bdf3 commit 938e211
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 938e211

Please sign in to comment.