Skip to content

Commit

Permalink
Merge pull request #412 from isfaaghyth/patch-1
Browse files Browse the repository at this point in the history
isn't superfluous negative check?
  • Loading branch information
JakeWharton authored Jan 13, 2018
2 parents 0dc3d9d + a7e888a commit 58ff533
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public Disposable scheduleDirect(Runnable run, long delay, TimeUnit unit) {

run = RxJavaPlugins.onSchedule(run);
ScheduledRunnable scheduled = new ScheduledRunnable(handler, run);
handler.postDelayed(scheduled, Math.max(0L, unit.toMillis(delay)));
handler.postDelayed(scheduled, unit.toMillis(delay));
return scheduled;
}

Expand Down

0 comments on commit 58ff533

Please sign in to comment.