From a71d45265db831e91845b6087d4167d4f7014508 Mon Sep 17 00:00:00 2001 From: Adam Fowler Date: Fri, 13 Sep 2019 18:25:22 +0100 Subject: [PATCH] AWSClient.send() functions don't throw errors so don't mark them as if they do --- Sources/AWSSDKSwiftCore/AWSClient.swift | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Sources/AWSSDKSwiftCore/AWSClient.swift b/Sources/AWSSDKSwiftCore/AWSClient.swift index 33a141610..15c43386a 100644 --- a/Sources/AWSSDKSwiftCore/AWSClient.swift +++ b/Sources/AWSSDKSwiftCore/AWSClient.swift @@ -118,7 +118,7 @@ extension AWSClient { // public facing apis extension AWSClient { - public func send(operation operationName: String, path: String, httpMethod: String, input: Input) throws -> Future { + public func send(operation operationName: String, path: String, httpMethod: String, input: Input) -> Future { return signer.manageCredential().thenThrowing { _ in let awsRequest = try self.createAWSRequest( @@ -135,7 +135,7 @@ extension AWSClient { } } - public func send(operation operationName: String, path: String, httpMethod: String) throws -> Future { + public func send(operation operationName: String, path: String, httpMethod: String) -> Future { return signer.manageCredential().thenThrowing { _ in let awsRequest = try self.createAWSRequest( @@ -151,7 +151,7 @@ extension AWSClient { } } - public func send(operation operationName: String, path: String, httpMethod: String) throws -> Future { + public func send(operation operationName: String, path: String, httpMethod: String) -> Future { return signer.manageCredential().thenThrowing { _ in let awsRequest = try self.createAWSRequest( @@ -167,8 +167,7 @@ extension AWSClient { } } - public func send(operation operationName: String, path: String, httpMethod: String, input: Input) - throws -> Future { + public func send(operation operationName: String, path: String, httpMethod: String, input: Input) -> Future { return signer.manageCredential().thenThrowing { _ in let awsRequest = try self.createAWSRequest(