Skip to content

Commit

Permalink
remove unnecessary check
Browse files Browse the repository at this point in the history
  • Loading branch information
euberseder-hubspot committed Jan 9, 2024
1 parent 96bebe9 commit 893f39e
Showing 1 changed file with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -392,13 +392,11 @@ static ParameterMap from(ClassRef classRef, ParameterMap parentMappings) {
TypeDef def = Types.typeDefFrom(classRef);

Map<String, TypeRef> mappings = new HashMap<>();
if(!def.getParameters().isEmpty()) {
for(int i=0; i<def.getParameters().size(); i++) {
mappings.put(
def.getParameters().get(i).getName(),
parentMappings.exchange(classRef.getArguments().get(i))
);
}
for(int i=0; i<def.getParameters().size(); i++) {
mappings.put(
def.getParameters().get(i).getName(),
parentMappings.exchange(classRef.getArguments().get(i))
);
}

return new ParameterMap(mappings);
Expand Down

0 comments on commit 893f39e

Please sign in to comment.