mirror of
https://gitee.com/log4j/pig.git
synced 2024-12-31 08:14:18 +08:00
移除多余的if判断
This commit is contained in:
parent
907eec1801
commit
48448fcbb2
@ -28,11 +28,9 @@ public class OAuth2EndpointUtils {
|
||||
Map<String, String[]> parameterMap = request.getParameterMap();
|
||||
MultiValueMap<String, String> parameters = new LinkedMultiValueMap<>(parameterMap.size());
|
||||
parameterMap.forEach((key, values) -> {
|
||||
if (values.length > 0) {
|
||||
for (String value : values) {
|
||||
parameters.add(key, value);
|
||||
}
|
||||
}
|
||||
});
|
||||
return parameters;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user