Skip to content

Commit

Permalink
Undo some changes that don't affect the result
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavohenke committed Mar 24, 2024
1 parent 67ad002 commit 91d6b3f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/completion-listener.ts
Expand Up @@ -126,11 +126,11 @@ export class CompletionListener {
first.timings.endDate.getTime() - second.timings.endDate.getTime(),
),
),
switchMap((events) => {
return this.isSuccess(events)
switchMap((events) =>
this.isSuccess(events)
? this.emitWithScheduler(Rx.of(events))
: this.emitWithScheduler(Rx.throwError(() => events));
}),
: this.emitWithScheduler(Rx.throwError(() => events)),
),
take(1),
),
);
Expand Down

0 comments on commit 91d6b3f

Please sign in to comment.