Skip to content

Commit 50ccdd0

Browse files
authored
fix: corresponding file change (#411)
1 parent 0ac9bfb commit 50ccdd0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

smithy-swift-codegen/src/main/kotlin/software/amazon/smithy/swift/codegen/middleware/MiddlewareExecutionGenerator.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import software.amazon.smithy.swift.codegen.model.camelCaseName
1313
import software.amazon.smithy.swift.codegen.model.capitalizedName
1414
import software.amazon.smithy.swift.codegen.swiftFunctionParameterIndent
1515

16-
typealias HttpMethodCallback = () -> String
16+
typealias HttpMethodCallback = (OperationShape) -> String
1717
class MiddlewareExecutionGenerator(
1818
private val ctx: ProtocolGenerator.GenerationContext,
1919
private val writer: SwiftWriter,
@@ -56,7 +56,7 @@ class MiddlewareExecutionGenerator(
5656

5757
private fun resolveHttpMethod(op: OperationShape): String {
5858
return httpMethodCallback?.let {
59-
it()
59+
it(op)
6060
} ?: run {
6161
val httpTrait = httpBindingResolver.httpTrait(op)
6262
httpTrait.method.toLowerCase()

0 commit comments

Comments
 (0)