Skip to content

Commit

Permalink
Fix compiler error
Browse files Browse the repository at this point in the history
  • Loading branch information
rainbowdashlabs committed Aug 18, 2024
1 parent 3a87b14 commit 3d91afb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bot/src/main/java/de/chojo/gamejam/server/ServerService.java
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public void syncVelocity() {
var req = HttpRequest.newBuilder(URI.create("http://%s:%d/v1/server".formatted(velocityHost, velocityPort)))
.GET()
.build();
HttpResponse<String> response;
HttpResponse<String> response = null;
var retries = 0;
while (retries < 5) {
try {
Expand All @@ -95,6 +95,7 @@ public void syncVelocity() {
throw new RuntimeException(e);
}
}
if(retries == 5) return;
var collectionType = Mapper.MAPPER.getTypeFactory()
.constructCollectionType(List.class, Registration.class);
List<Registration> registrations;
Expand Down

0 comments on commit 3d91afb

Please sign in to comment.