去除不必要的build()

This commit is contained in:
ning 2021-10-28 06:33:05 +00:00 committed by Gitee
parent 3187b1c46e
commit 99d48b5214
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ public class AuthFilter implements GlobalFilter, Ordered
private void removeHeader(ServerHttpRequest.Builder mutate, String name)
{
mutate.headers(httpHeaders -> httpHeaders.remove(name)).build();
mutate.headers(httpHeaders -> httpHeaders.remove(name));
}
private Mono<Void> unauthorizedResponse(ServerWebExchange exchange, String msg)