mirror of
https://github.com/google/nomulus
synced 2026-09-02 22:27:07 +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,
|
Multimap<String, String> params,
|
||||||
Clock clock,
|
Clock clock,
|
||||||
Optional<Integer> jitterSeconds) {
|
Optional<Integer> jitterSeconds) {
|
||||||
if (jitterSeconds.isEmpty() || jitterSeconds.get() <= 0) {
|
if (!jitterSeconds.isPresent() || jitterSeconds.get() <= 0) {
|
||||||
return createTask(path, method, service, params);
|
return createTask(path, method, service, params);
|
||||||
}
|
}
|
||||||
Instant scheduleTime =
|
Instant scheduleTime =
|
||||||
|
|||||||
Reference in New Issue
Block a user