Skip to content

Commit

Permalink
Merge pull request #121 from adam-fowler/no-throwing
Browse files Browse the repository at this point in the history
AWSClient.send() functions don't throw errors so don't mark them as if they do
  • Loading branch information
adam-fowler authored Sep 14, 2019
2 parents e415e22 + a71d452 commit d0289a5
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions Sources/AWSSDKSwiftCore/AWSClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ extension AWSClient {

// public facing apis
extension AWSClient {
public func send<Input: AWSShape>(operation operationName: String, path: String, httpMethod: String, input: Input) throws -> Future<Void> {
public func send<Input: AWSShape>(operation operationName: String, path: String, httpMethod: String, input: Input) -> Future<Void> {

return signer.manageCredential().thenThrowing { _ in
let awsRequest = try self.createAWSRequest(
Expand All @@ -135,7 +135,7 @@ extension AWSClient {
}
}

public func send(operation operationName: String, path: String, httpMethod: String) throws -> Future<Void> {
public func send(operation operationName: String, path: String, httpMethod: String) -> Future<Void> {

return signer.manageCredential().thenThrowing { _ in
let awsRequest = try self.createAWSRequest(
Expand All @@ -151,7 +151,7 @@ extension AWSClient {
}
}

public func send<Output: AWSShape>(operation operationName: String, path: String, httpMethod: String) throws -> Future<Output> {
public func send<Output: AWSShape>(operation operationName: String, path: String, httpMethod: String) -> Future<Output> {

return signer.manageCredential().thenThrowing { _ in
let awsRequest = try self.createAWSRequest(
Expand All @@ -167,8 +167,7 @@ extension AWSClient {
}
}

public func send<Output: AWSShape, Input: AWSShape>(operation operationName: String, path: String, httpMethod: String, input: Input)
throws -> Future<Output> {
public func send<Output: AWSShape, Input: AWSShape>(operation operationName: String, path: String, httpMethod: String, input: Input) -> Future<Output> {

return signer.manageCredential().thenThrowing { _ in
let awsRequest = try self.createAWSRequest(
Expand Down

0 comments on commit d0289a5

Please sign in to comment.