Skip to content

Commit

Permalink
Remove unnecessary nullcheck in request()
Browse files Browse the repository at this point in the history
  • Loading branch information
ZacSweers committed Nov 18, 2017
1 parent 9606ae4 commit b38d03f
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,7 @@ final class AutoDisposingSubscriberImpl<T> extends AtomicInteger
* @param n the request amount, positive
*/
@Override public void request(long n) {
Subscription s = mainSubscription.get();
if (s != null) {
s.request(n);
}
mainSubscription.get().request(n);
}

/**
Expand Down

0 comments on commit b38d03f

Please sign in to comment.