From 7cb4832ab5f555bf43847caa5e4fcc7d61f9c51a Mon Sep 17 00:00:00 2001 From: Ian Saultz <52051793+atierian@users.noreply.github.com> Date: Wed, 20 Sep 2023 15:04:30 -0400 Subject: [PATCH] switch expressions are 5.9 :( --- .../FoundationHTTPClientEngine.swift | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/AmplifyPlugins/Core/AWSPluginsCore/Utils/CustomHttpClientEngine/FoundationHTTPClientEngine.swift b/AmplifyPlugins/Core/AWSPluginsCore/Utils/CustomHttpClientEngine/FoundationHTTPClientEngine.swift index b93936f2d1..6ccac4f3b8 100644 --- a/AmplifyPlugins/Core/AWSPluginsCore/Utils/CustomHttpClientEngine/FoundationHTTPClientEngine.swift +++ b/AmplifyPlugins/Core/AWSPluginsCore/Utils/CustomHttpClientEngine/FoundationHTTPClientEngine.swift @@ -22,10 +22,10 @@ extension Foundation.URLRequest { } } - httpBody = switch sdkRequest.body { - case .data(let data): data - case .stream(let stream): stream.toBytes().getData() - case .none: nil + switch sdkRequest.body { + case .data(let data): httpBody = data + case .stream(let stream): httpBody = stream.toBytes().getData() + case .none: break } } }