Skip to content

Commit

Permalink
Remove unnecessary nullcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
ZacSweers committed Jan 19, 2017
1 parent a1029b4 commit e5c4a9e
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
import io.reactivex.Scheduler;
import io.reactivex.disposables.*;
import io.reactivex.internal.disposables.EmptyDisposable;
import io.reactivex.internal.functions.ObjectHelper;
import io.reactivex.plugins.RxJavaPlugins;

import java.util.concurrent.*;
Expand Down Expand Up @@ -57,7 +56,7 @@ public SingleScheduler() {
* system properties for configuring new thread creation. Cannot be null.
*/
public SingleScheduler(ThreadFactory threadFactory) {
this.threadFactory = ObjectHelper.requireNonNull(threadFactory, "threadFactory was null");
this.threadFactory = threadFactory;
executor.lazySet(createExecutor(threadFactory));
}

Expand Down

0 comments on commit e5c4a9e

Please sign in to comment.