Skip to content

Commit f386e76

Browse files
committed
Apply formatter
1 parent 6f384ae commit f386e76

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed

Sources/AWSLambdaRuntime/Lambda+Codable.swift

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,13 @@ extension LambdaCodableAdapter {
170170
encoder: JSONEncoder,
171171
decoder: JSONDecoder,
172172
handler: Handler
173-
) where Output: Encodable, Output == Handler.Output, Encoder == LambdaJSONOutputEncoder<Output>, Decoder == JSONDecoder {
173+
)
174+
where
175+
Output: Encodable,
176+
Output == Handler.Output,
177+
Encoder == LambdaJSONOutputEncoder<Output>,
178+
Decoder == JSONDecoder
179+
{
174180
self.init(
175181
encoder: LambdaJSONOutputEncoder(encoder),
176182
decoder: decoder,

Tests/AWSLambdaRuntimeTests/NewLambda+CodableTests.swift

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,11 @@
1212
//
1313
//===----------------------------------------------------------------------===//
1414

15-
import Testing
1615
import AWSLambdaRuntime
17-
import NIOCore
1816
import Logging
17+
import NIOCore
18+
import Testing
19+
1920
#if canImport(FoundationEssentials)
2021
import FoundationEssentials
2122
#else
@@ -53,7 +54,11 @@ struct JSONTests {
5354
foo
5455
}
5556

56-
var handler = LambdaCodableAdapter(encoder: jsonEncoder, decoder: jsonDecoder, handler: LambdaHandlerAdapter(handler: closureHandler))
57+
var handler = LambdaCodableAdapter(
58+
encoder: jsonEncoder,
59+
decoder: jsonDecoder,
60+
handler: LambdaHandlerAdapter(handler: closureHandler)
61+
)
5762

5863
let event = ByteBuffer(string: #"{"bar":"baz"}"#)
5964
let writer = MockLambdaWriter()

0 commit comments

Comments
 (0)