Skip to content

Commit

Permalink
simplify condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Liza K committed Apr 22, 2020
1 parent ba1dbbf commit c6688fb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export const asyncSearchStrategyProvider: TSearchStrategyProvider<typeof ASYNC_S
}

// If the response indicates it is complete, stop polling and complete the observable
if (!response.is_partial && !response.is_running) return EMPTY;
if (!response.is_running) return EMPTY;

id = response.id;

Expand Down

0 comments on commit c6688fb

Please sign in to comment.