Skip to content

Commit

Permalink
try to ktlint
Browse files Browse the repository at this point in the history
  • Loading branch information
dayaffe committed Jan 30, 2025
1 parent d5ac13e commit 974f29d
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ import software.amazon.smithy.rulesengine.language.syntax.parameters.Parameter
import software.amazon.smithy.swift.codegen.SwiftWriter
import software.amazon.smithy.swift.codegen.integration.ProtocolGenerator
import software.amazon.smithy.swift.codegen.integration.middlewares.OperationEndpointResolverMiddleware
import software.amazon.smithy.swift.codegen.integration.middlewares.defaultValueLiteral
import software.amazon.smithy.swift.codegen.swiftmodules.SmithyTypes
import software.amazon.smithy.swift.codegen.utils.toLowerCamelCase

class AWSOperationEndpointResolverMiddleware(
ctx: ProtocolGenerator.GenerationContext,
Expand Down Expand Up @@ -36,12 +33,11 @@ class AWSOperationEndpointResolverMiddleware(
"let configuredEndpoint = try config.${getBuiltInName(param)} " +
"?? \$N.configuredEndpoint(\$S, config.ignoreConfiguredEndpointURLs)",
AWSClientRuntimeTypes.Core.AWSClientConfigDefaultsProvider,
ctx.settings.sdkId
)
ctx.settings.sdkId)
return "configuredEndpoint"
}

// Otherwise, just use the base class logic
return super.handleBuiltInParam(param, writer)
}
}
}

0 comments on commit 974f29d

Please sign in to comment.