Skip to content

Commit 51a6c4b

Browse files
committed
Improve readbility
1 parent afc3e3f commit 51a6c4b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

kafka-connect-oura-source/src/main/java/org/radarbase/connect/rest/oura/OuraSourceTask.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,8 @@ public Stream<RestRequest> requests() {
126126
}
127127

128128
private List<Route> getRotatedRoutes() {
129-
int routeStart = routeStartIndex % this.routes.size();
130129
List<Route> rotatedRoutes = new ArrayList<>(this.routes);
131-
Collections.rotate(rotatedRoutes, routeStart);
130+
Collections.rotate(rotatedRoutes, routeStartIndex % this.routes.size());
132131
routeStartIndex = (routeStartIndex + 1) % this.routes.size();
133132
return rotatedRoutes;
134133
}

0 commit comments

Comments
 (0)