Skip to content

Commit

Permalink
AWSClient.send() functions don't throw errors so don't mark them as i…
Browse files Browse the repository at this point in the history
…f they do
  • Loading branch information
adam-fowler committed Sep 13, 2019
1 parent e415e22 commit a71d452
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 a71d452

Please sign in to comment.