Skip to content

Commit e5c4a9e

Browse files
committed
Remove unnecessary nullcheck
1 parent a1029b4 commit e5c4a9e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/main/java/io/reactivex/internal/schedulers/SingleScheduler.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
import io.reactivex.Scheduler;
1616
import io.reactivex.disposables.*;
1717
import io.reactivex.internal.disposables.EmptyDisposable;
18-
import io.reactivex.internal.functions.ObjectHelper;
1918
import io.reactivex.plugins.RxJavaPlugins;
2019

2120
import java.util.concurrent.*;
@@ -57,7 +56,7 @@ public SingleScheduler() {
5756
* system properties for configuring new thread creation. Cannot be null.
5857
*/
5958
public SingleScheduler(ThreadFactory threadFactory) {
60-
this.threadFactory = ObjectHelper.requireNonNull(threadFactory, "threadFactory was null");
59+
this.threadFactory = threadFactory;
6160
executor.lazySet(createExecutor(threadFactory));
6261
}
6362

0 commit comments

Comments
 (0)