diff --git a/client/src/main/java/com/influxdb/client/internal/TasksApiImpl.java b/client/src/main/java/com/influxdb/client/internal/TasksApiImpl.java index 36310338bc..d39f13d75b 100644 --- a/client/src/main/java/com/influxdb/client/internal/TasksApiImpl.java +++ b/client/src/main/java/com/influxdb/client/internal/TasksApiImpl.java @@ -203,7 +203,7 @@ public Task next() throws IndexOutOfBoundsException { doQueryNext(); } - if (tasksIterator.hasNext()){ + if (tasksIterator.hasNext()) { return tasksIterator.next(); } else { throw new IndexOutOfBoundsException();