Skip to content

Commit

Permalink
[#70] refactor: UriAndMethodAndParamCondition code small 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
shin-mallang committed Nov 12, 2023
1 parent ce2a61e commit 357b1e0
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

import jakarta.servlet.http.HttpServletRequest;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;
import lombok.Builder;
import org.springframework.http.HttpMethod;
Expand Down Expand Up @@ -34,9 +35,9 @@ private boolean matchParamIfRequired(HttpServletRequest request) {
if (matchParamIsNotRequired()) {
return true;
}
for (String param : params.keySet()) {
String value = request.getParameter(param);
if (!params.get(param).equals(value)) {
for (Entry<String, String> entry : params.entrySet()) {
String value = request.getParameter(entry.getKey());
if (!entry.getValue().equals(value)) {
return false;
}
}
Expand Down

0 comments on commit 357b1e0

Please sign in to comment.