Skip to content

Commit 053de48

Browse files
authored
Misc small changes to fix CI (#395)
* fix typo * fix license header * swift format
1 parent 6d886aa commit 053de48

File tree

4 files changed

+29
-6
lines changed

4 files changed

+29
-6
lines changed

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ let package = Package(
3232
dependencies: [
3333
.byName(name: "AWSLambdaRuntimeCore"),
3434
.product(name: "NIOCore", package: "swift-nio"),
35-
],
35+
]
3636
),
3737
.target(
3838
name: "AWSLambdaRuntimeCore",

Sources/AWSLambdaRuntime/Lambda+Codable.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ public struct LambdaJSONEventDecoder: LambdaEventDecoder {
3232
}
3333

3434
@inlinable
35-
public func decode<Event>(_ type: Event.Type, from buffer: NIOCore.ByteBuffer) throws -> Event where Event : Decodable {
35+
public func decode<Event>(_ type: Event.Type, from buffer: NIOCore.ByteBuffer) throws -> Event
36+
where Event: Decodable {
3637
try buffer.getJSONDecodable(
3738
Event.self,
3839
decoder: self.jsonDecoder,

Sources/AWSLambdaRuntime/Vendored/ByteBuffer-foundation.swift

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
//===----------------------------------------------------------------------===//
2+
//
3+
// This source file is part of the SwiftAWSLambdaRuntime open source project
4+
//
5+
// Copyright (c) 2017-2022 Apple Inc. and the SwiftAWSLambdaRuntime project authors
6+
// Licensed under Apache License v2.0
7+
//
8+
// See LICENSE.txt for license information
9+
// See CONTRIBUTORS.txt for the list of SwiftAWSLambdaRuntime project authors
10+
//
11+
// SPDX-License-Identifier: Apache-2.0
12+
//
13+
//===----------------------------------------------------------------------===//
14+
115
//===----------------------------------------------------------------------===//
216
//
317
// This source file is part of the SwiftNIO open source project

Sources/AWSLambdaRuntime/Vendored/JSON+ByteBuffer.swift

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
1+
//===----------------------------------------------------------------------===//
2+
//
3+
// This source file is part of the SwiftAWSLambdaRuntime open source project
14
//
2-
// JSON+ByteBuffer.swift
3-
// swift-aws-lambda-runtime
5+
// Copyright (c) 2017-2022 Apple Inc. and the SwiftAWSLambdaRuntime project authors
6+
// Licensed under Apache License v2.0
7+
//
8+
// See LICENSE.txt for license information
9+
// See CONTRIBUTORS.txt for the list of SwiftAWSLambdaRuntime project authors
410
//
5-
// Created by Fabian Fett on 06.09.24.
11+
// SPDX-License-Identifier: Apache-2.0
612
//
13+
//===----------------------------------------------------------------------===//
714

815
//===----------------------------------------------------------------------===//
916
//
@@ -19,12 +26,13 @@
1926
//
2027
//===----------------------------------------------------------------------===//
2128

29+
import NIOCore
30+
2231
#if canImport(FoundationEssentials)
2332
import FoundationEssentials
2433
#else
2534
import Foundation
2635
#endif
27-
import NIOCore
2836

2937
extension ByteBuffer {
3038
/// Attempts to decode the `length` bytes from `index` using the `JSONDecoder` `decoder` as `T`.

0 commit comments

Comments
 (0)