Misc small kotlin based refactors
Java file here because it uses kotlin function which returns non null
This commit is contained in:
parent
9ba89d418b
commit
4f0e62e599
9 changed files with 16 additions and 26 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue