Skip to content

Commit

Permalink
Refactor redundant if else
Browse files Browse the repository at this point in the history
  • Loading branch information
rishav-karanjit committed Nov 4, 2024
1 parent c450905 commit 00a961a
Showing 1 changed file with 2 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -492,23 +492,13 @@ private void renderListShape(
isExternalShape
);
if (isExternalShape) {
if (SmithyNameResolver.isShapeFromAWSSDK(currentShape)) {
writer.addImportFromModule(
SmithyNameResolver.getGoModuleNameForSdkNamespace(
currentShape.getId().getNamespace()
),
"types",
SmithyNameResolver.smithyTypesNamespace(currentShape)
);
} else {
writer.addImportFromModule(
writer.addImportFromModule(
SmithyNameResolver.getGoModuleNameForSmithyNamespace(
currentShape.getId().getNamespace()
),
"types",
SmithyNameResolver.smithyTypesNamespace(currentShape),
SmithyNameResolver.smithyTypesNamespace(currentShape)
);
}
}
validationFuncInputTypeMap.put(memberShape, inputType);
dataSourceForList = "Value";
Expand Down

0 comments on commit 00a961a

Please sign in to comment.