From b38d03f800bbc644574d36280088de35918412c2 Mon Sep 17 00:00:00 2001 From: Zac Sweers Date: Fri, 17 Nov 2017 22:49:05 -0800 Subject: [PATCH] Remove unnecessary nullcheck in request() --- .../com/uber/autodispose/AutoDisposingSubscriberImpl.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/autodispose/src/main/java/com/uber/autodispose/AutoDisposingSubscriberImpl.java b/autodispose/src/main/java/com/uber/autodispose/AutoDisposingSubscriberImpl.java index 45192db9d..421168bc2 100755 --- a/autodispose/src/main/java/com/uber/autodispose/AutoDisposingSubscriberImpl.java +++ b/autodispose/src/main/java/com/uber/autodispose/AutoDisposingSubscriberImpl.java @@ -85,10 +85,7 @@ final class AutoDisposingSubscriberImpl 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); } /**