Skip to content

Commit 64282d4

Browse files
committed
fix typos
1 parent 5afb930 commit 64282d4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Sources/AWSLambdaRuntime/LambdaStreaming+Codable.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,17 +83,17 @@ public struct StreamingLambdaCodableAdapter<
8383
) async throws {
8484

8585
// for some reasons I don't understand the "body" param contains the complete FunctionURL request
86-
// so, 1/ we decode the event we receive, 2/ we base64 decode the body, 3/ we decode a FunnctionURLRequest again,
86+
// so, 1/ we decode the event we receive, 2/ we base64 decode the body, 3/ we decode a FunctionURLRequest again,
8787
// then 4/ we can access the actual payload body, decode it pass it to the handler
8888
let functionUrlEvent1 = try self.decoder.decode(FunctionURLRequest.self, from: event)
89-
if let base64EncodedString = functionUrlEvent1.body,
9089

91-
// this is the minimal way to base64 decode without importing new dependecies
90+
if let base64EncodedString = functionUrlEvent1.body,
91+
// this is the minimal way to base64 decode without importing new dependencies
9292
let decodedData = Data(base64Encoded: base64EncodedString),
9393
let decodedString = String(data: decodedData, encoding: .utf8)
9494
{
9595

96-
// decode the FunCtionURL event inside the body
96+
// decode the FunctionURL event inside the body
9797
let functionUrlEvent2 = try self.decoder.decode(
9898
FunctionURLRequest.self,
9999
from: ByteBuffer(string: decodedString)

0 commit comments

Comments
 (0)