Skip to content

Commit

Permalink
codegen: Fix typos (#1510)
Browse files Browse the repository at this point in the history
Fixes typos in the SDK's code generation variable names.
  • Loading branch information
fuku2014 authored Dec 3, 2021
1 parent 2c81f80 commit 5705fbc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public void writeAdditionalFiles(
GoDelegator goDelegator
) {
ServiceTrait serviceTrait = settings.getService(model).expectTrait(ServiceTrait.class);
String servceId = serviceTrait.getSdkId().replace("-", "").replace(" ", "").toLowerCase();
String serviceId = serviceTrait.getSdkId().replace("-", "").replace(" ", "").toLowerCase();

goDelegator.useShapeWriter(settings.getService(model), writer -> {
writer.openBlock("func $L(stack $P) error {", "}", MIDDLEWARE_RESOLVER, SymbolUtils.createPointableSymbolBuilder("Stack",
Expand All @@ -51,7 +51,7 @@ public void writeAdditionalFiles(
.build(),
SymbolUtils.createValueSymbolBuilder("APIMetadata",
AwsGoDependency.AWS_MIDDLEWARE).build(),
servceId,
serviceId,
SymbolUtils.createValueSymbolBuilder("goModuleVersion").build());
});
writer.write("");
Expand Down

0 comments on commit 5705fbc

Please sign in to comment.