Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
+4
-1
@@ -71,7 +71,10 @@ class TournamentBotGamePlayer:
|
||||
val id = objectMapper.readTree(response.readEntity(classOf[String])).path("id").asText()
|
||||
response.close()
|
||||
Option(id).filter(_.nonEmpty)
|
||||
else { log.warnf("Parking bot %s returned status %d", botName(difficulty), response.getStatus); response.close(); None }
|
||||
else {
|
||||
log.warnf("Parking bot %s returned status %d", botName(difficulty), response.getStatus); response.close();
|
||||
None
|
||||
}
|
||||
}.getOrElse(None)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user