Polish
This commit is contained in:
@@ -167,10 +167,7 @@ abstract class HttpClientTransport implements HttpTransport {
|
||||
return null;
|
||||
}
|
||||
try (InputStream stream = entity.getContent()) {
|
||||
if (stream == null) {
|
||||
return null;
|
||||
}
|
||||
return stream.readAllBytes();
|
||||
return (stream != null) ? stream.readAllBytes() : null;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -96,7 +96,7 @@ dependencies {
|
||||
optional("org.yaml:snakeyaml")
|
||||
optional("org.jetbrains.kotlin:kotlin-reflect")
|
||||
optional("org.jetbrains.kotlin:kotlin-stdlib")
|
||||
|
||||
|
||||
testFixturesCompileOnly("jakarta.servlet:jakarta.servlet-api")
|
||||
testFixturesCompileOnly("org.mockito:mockito-core")
|
||||
testFixturesCompileOnly("org.springframework:spring-web")
|
||||
|
||||
Reference in New Issue
Block a user