mirror of
https://github.com/google/nomulus.git
synced 2025-04-29 19:47:51 +02:00
Change Optional::isEmpty to Optional::isPresent (#1428)
This commit is contained in:
parent
9172093ccd
commit
4eb55762f1
1 changed files with 1 additions and 1 deletions
|
@ -160,7 +160,7 @@ public class CloudTasksUtils implements Serializable {
|
|||
Multimap<String, String> params,
|
||||
Clock clock,
|
||||
Optional<Integer> jitterSeconds) {
|
||||
if (jitterSeconds.isEmpty() || jitterSeconds.get() <= 0) {
|
||||
if (!jitterSeconds.isPresent() || jitterSeconds.get() <= 0) {
|
||||
return createTask(path, method, service, params);
|
||||
}
|
||||
Instant scheduleTime =
|
||||
|
|
Loading…
Add table
Reference in a new issue