Skip to content

Commit

Permalink
Fix hasObservers conditional for Output class (#283)
Browse files Browse the repository at this point in the history
The hasObservers() method should check to see if the valueRelay or the errorRelay has observers instead of checking the valueRelay twice.
  • Loading branch information
jdrider authored and uKL committed Sep 15, 2017
1 parent 879fcf3 commit 98f0390
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ private static class Output<T> {
}

boolean hasObservers() {
return valueRelay.hasObservers() || valueRelay.hasObservers();
return valueRelay.hasObservers() || errorRelay.hasObservers();
}
}
}

0 comments on commit 98f0390

Please sign in to comment.