Browse Source

formatting

pull/1511/head
Spencer Gibb 5 years ago
parent
commit
7aa2bc879c
No known key found for this signature in database
GPG Key ID: 7788A47380690861
  1. 7
      spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/support/DefaultClientResponse.java

7
spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/support/DefaultClientResponse.java

@ -123,15 +123,12 @@ public class DefaultClientResponse implements ClientResponse { @@ -123,15 +123,12 @@ public class DefaultClientResponse implements ClientResponse {
@Override
public Mono<Void> releaseBody() {
return body(BodyExtractors.toDataBuffers())
.map(DataBufferUtils::release)
.then();
return body(BodyExtractors.toDataBuffers()).map(DataBufferUtils::release).then();
}
@Override
public Mono<ResponseEntity<Void>> toBodilessEntity() {
return releaseBody()
.then(toEntityInternal(Mono.empty()));
return releaseBody().then(toEntityInternal(Mono.empty()));
}
@Override

Loading…
Cancel
Save