Skip to content

Commit

Permalink
Fix ktlint
Browse files Browse the repository at this point in the history
  • Loading branch information
jbelkins committed May 9, 2024
1 parent c6273ac commit 045d75b
Showing 1 changed file with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ import software.amazon.smithy.swift.codegen.middleware.MiddlewareStep
import software.amazon.smithy.swift.codegen.swiftmodules.SmithyRetriesTypes

class RetryMiddleware(
val model: Model,
val symbolProvider: SymbolProvider,
val retryErrorInfoProviderSymbol: Symbol,
val model: Model,
val symbolProvider: SymbolProvider,
val retryErrorInfoProviderSymbol: Symbol,
) : MiddlewareRenderable {

override val name = "RetryMiddleware"
Expand All @@ -40,14 +40,14 @@ class RetryMiddleware(
val output = MiddlewareShapeUtils.outputSymbol(symbolProvider, model, op)
writer.addImport(SwiftDependency.SMITHY_RETRIES.target)
writer.write(
"\$L.\$L.intercept(position: \$L, middleware: \$N<\$N, \$N, \$N>(options: config.retryStrategyOptions))",
operationStackName,
middlewareStep.stringValue(),
position.stringValue(),
ClientRuntimeTypes.Middleware.RetryMiddleware,
SmithyRetriesTypes.DefaultRetryStrategy,
retryErrorInfoProviderSymbol,
output
"\$L.\$L.intercept(position: \$L, middleware: \$N<\$N, \$N, \$N>(options: config.retryStrategyOptions))",
operationStackName,
middlewareStep.stringValue(),
position.stringValue(),
ClientRuntimeTypes.Middleware.RetryMiddleware,
SmithyRetriesTypes.DefaultRetryStrategy,
retryErrorInfoProviderSymbol,
output
)
}
}
Expand Down

0 comments on commit 045d75b

Please sign in to comment.