Skip to content

Commit

Permalink
Fix swiftlint whitespace & change Array<> to [] for Swift.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sichan Yoo committed Oct 25, 2023
1 parent 5a46fb9 commit 645bbf5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ public protocol AWSServiceSpecificConfiguration {
authSchemeResolver: ClientRuntime.AuthSchemeResolver?,
authSchemes: Array<ClientRuntime.AuthScheme>?
) throws

/// List of configured auth schemes for the service.
///
/// If none is provided at compile time, value will default to auth schemes supported by the service as defined in its model.
var authSchemes: Array<ClientRuntime.AuthScheme> { get }

/// The auth scheme resolver to use for the service.
///
/// If none is provided at compile time, value will default to default auth scheme resolver for the service generated based on its model.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class AWSServiceConfig(writer: SwiftWriter, val ctx: ProtocolGenerator.Generatio
) {
writer.write("self.endpointResolver = try endpointResolver ?? DefaultEndpointResolver()")
writer.write("self.authSchemeResolver = authSchemeResolver ?? Default${serviceName}AuthSchemeResolver()")
writer.write("var modeledAuthSchemes: Array<ClientRuntime.AuthScheme> = Array()")
writer.write("var modeledAuthSchemes: [ClientRuntime.AuthScheme] = Array()")
if (ServiceIndex(ctx.model).getEffectiveAuthSchemes(ctx.service).contains(SigV4Trait.ID)) {
writer.write("modeledAuthSchemes.append(SigV4AuthScheme())")
}
Expand Down

0 comments on commit 645bbf5

Please sign in to comment.