Skip to content

Commit

Permalink
Fix review suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
lnash94 committed Sep 20, 2024
1 parent f40ab3b commit e3855c5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -343,11 +343,11 @@ function testMapJsonOfDefaultableQueryBinding() returns error? {
function testMapJsonArrOfDefaultableQueryBinding() returns error? {
json response = check queryBindingClient->get("/default/q4");
common:assertJsonPayloadtoJsonString(response, {
objects: [
{name: "test1", value: "json1"},
{name: "test2", value: "json2"}
]
});
objects: [
{name: "test1", value: "json1"},
{name: "test2", value: "json2"}
]
});
}

@test:Config {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ private static String getQueryParamName(String paramName, BMap annotations) {
BMap mapValue = annotations.getMapValue(StringUtils.fromString(QUERY_ANNOTATION));
Object queryName = mapValue.get(HttpConstants.ANN_FIELD_NAME);
if (queryName instanceof BString query) {
paramName = query.getValue();
return query.getValue();
}
return paramName;
}
Expand Down

0 comments on commit e3855c5

Please sign in to comment.