Misc small kotlin based refactors

Java file here because it uses kotlin function which returns non null
This commit is contained in:
Yevhen Babiichuk (DustDFG) 2026-01-11 13:51:34 +02:00
parent 9ba89d418b
commit 4f0e62e599
9 changed files with 16 additions and 26 deletions

View file

@ -161,9 +161,7 @@ public final class DownloaderImpl extends Downloader {
String responseBodyToReturn = null;
try (ResponseBody body = response.body()) {
if (body != null) {
responseBodyToReturn = body.string();
}
responseBodyToReturn = body.string();
}
final String latestUrl = response.request().url().toString();