1
0
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:
Rachel Guan
2021-11-18 17:08:15 -05:00
committed by GitHub
parent 8393c75929
commit 548ae25fac

View File

@@ -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 =