mirror of
https://github.com/google/nomulus
synced 2026-01-09 23:47:49 +00:00
Change Optional::isEmpty to Optional::isPresent (#1428)
This commit is contained in:
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user