Fixes for LGTM warnings

This commit is contained in:
Anthony Sute 2019-11-05 19:45:17 -05:00 committed by James Agnew
parent 3cf8254625
commit 92de268f32
1 changed files with 1 additions and 3 deletions

View File

@ -2766,7 +2766,7 @@ public class SearchBuilder implements ISearchBuilder {
// addPredicateTag(Collections.singletonList(Collections.singletonList(new UriParam(((SearchFilterParser.FilterParameter) theFilter).getValue()))), // addPredicateTag(Collections.singletonList(Collections.singletonList(new UriParam(((SearchFilterParser.FilterParameter) theFilter).getValue()))),
// searchParam.getName()); // searchParam.getName());
// } // }
else if (searchParam != null) { else {
RestSearchParameterTypeEnum typeEnum = searchParam.getParamType(); RestSearchParameterTypeEnum typeEnum = searchParam.getParamType();
if (typeEnum == RestSearchParameterTypeEnum.URI) { if (typeEnum == RestSearchParameterTypeEnum.URI) {
return addPredicateUri(theResourceName, return addPredicateUri(theResourceName,
@ -2814,8 +2814,6 @@ public class SearchBuilder implements ISearchBuilder {
Collections.singletonList(param), Collections.singletonList(param),
theFilter.getOperation()); theFilter.getOperation());
} }
} else {
throw new InvalidRequestException("Invalid search parameter specified, " + theFilter.getParamPath().getName() + ", for resource type " + theResourceName);
} }
return null; return null;
} }