Skip to content

Commit

Permalink
codegen: Fix typos (aws#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 and jrichardpfs committed Feb 14, 2022
1 parent 4a1c633 commit 006f144
Showing 1 changed file with 2 additions and 2 deletions.
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 006f144

Please sign in to comment.