formatting

This commit is contained in:
spencergibb
2021-01-15 11:13:41 -05:00
parent a81bb187c8
commit 5c2bf4a4dd

View File

@@ -121,8 +121,7 @@ public class NettyWriteResponseFilter implements GlobalFilter, Ordered {
private void cleanup(ServerWebExchange exchange) {
Connection connection = exchange.getAttribute(CLIENT_RESPONSE_CONN_ATTR);
if (connection != null && connection.channel().isActive()
&& !connection.isPersistent()) {
if (connection != null && connection.channel().isActive() && !connection.isPersistent()) {
connection.dispose();
}
}