Skip to content

Commit 6bf8f0f

Browse files
committed
swift format
1 parent 903c5d3 commit 6bf8f0f

File tree

4 files changed

+16
-19
lines changed

4 files changed

+16
-19
lines changed

Examples/AWSSDK/Package.swift

+5-5
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
//===----------------------------------------------------------------------===//
55
//
6-
// This source file is part of the AWS Lambda Swift
6+
// This source file is part of the AWS Lambda Swift
77
// VSCode extension open source project.
88
//
99
// Copyright (c) 2024, the VSCode AWS Lambda Swift extension project authors.
@@ -38,15 +38,15 @@ let package = Package(
3838
// dependency on swift-aws-lambda-runtime is added dynamically below
3939
// .package(url: "https://github.com/swift-server/swift-aws-lambda-runtime.git", branch: "main")
4040
.package(url: "https://github.com/swift-server/swift-aws-lambda-events", branch: "main"),
41-
.package(url: "https://github.com/awslabs/aws-sdk-swift", from: "1.0.0")
41+
.package(url: "https://github.com/awslabs/aws-sdk-swift", from: "1.0.0"),
4242
],
4343
targets: [
4444
.executableTarget(
4545
name: "AWSSDKExample",
4646
dependencies: [
47-
.product(name: "AWSLambdaRuntime",package: "swift-aws-lambda-runtime"),
48-
.product(name: "AWSLambdaEvents",package: "swift-aws-lambda-events"),
49-
.product(name: "AWSS3",package: "aws-sdk-swift"),
47+
.product(name: "AWSLambdaRuntime", package: "swift-aws-lambda-runtime"),
48+
.product(name: "AWSLambdaEvents", package: "swift-aws-lambda-events"),
49+
.product(name: "AWSS3", package: "aws-sdk-swift"),
5050
]
5151
)
5252
]

Examples/AWSSDK/Sources/main.swift

+2-3
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,15 @@
1212
//
1313
//===----------------------------------------------------------------------===//
1414

15-
import AWSLambdaRuntime
1615
import AWSLambdaEvents
17-
16+
import AWSLambdaRuntime
1817
import AWSS3
1918

2019
func handler(event: APIGatewayV2Request, context: LambdaContext) async throws -> APIGatewayV2Response {
2120

2221
var response: APIGatewayV2Response
2322
do {
24-
// read the list of buckets
23+
// read the list of buckets
2524
context.logger.debug("Reading list of buckets")
2625
let client = try await S3Client()
2726
let output = try await client.listBuckets(input: ListBucketsInput())

Examples/Soto/Package.swift

+6-7
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
//===----------------------------------------------------------------------===//
55
//
6-
// This source file is part of the AWS Lambda Swift
6+
// This source file is part of the AWS Lambda Swift
77
// VSCode extension open source project.
88
//
99
// Copyright (c) 2024, the VSCode AWS Lambda Swift extension project authors.
@@ -28,7 +28,6 @@ let platforms: [PackageDescription.SupportedPlatform]? = [.macOS(.v15)]
2828
let platforms: [PackageDescription.SupportedPlatform]? = nil
2929
#endif
3030

31-
3231
let package = Package(
3332
name: "SotoLambdaExample",
3433
platforms: platforms,
@@ -37,18 +36,18 @@ let package = Package(
3736
],
3837
dependencies: [
3938
.package(url: "https://github.com/soto-project/soto.git", from: "7.0.0"),
40-
39+
4140
// dependency on swift-aws-lambda-runtime is added dynamically below
4241
// .package(url: "https://github.com/swift-server/swift-aws-lambda-runtime.git", branch: "main")
43-
.package(url: "https://github.com/swift-server/swift-aws-lambda-events", branch: "main")
42+
.package(url: "https://github.com/swift-server/swift-aws-lambda-events", branch: "main"),
4443
],
4544
targets: [
4645
.executableTarget(
4746
name: "SotoExample",
4847
dependencies: [
4948
.product(name: "SotoS3", package: "soto"),
50-
.product(name: "AWSLambdaRuntime",package: "swift-aws-lambda-runtime"),
51-
.product(name: "AWSLambdaEvents",package: "swift-aws-lambda-events"),
49+
.product(name: "AWSLambdaRuntime", package: "swift-aws-lambda-runtime"),
50+
.product(name: "AWSLambdaEvents", package: "swift-aws-lambda-events"),
5251
]
5352
)
5453
]
@@ -70,4 +69,4 @@ if let localDepsPath = ProcessInfo.processInfo.environment["LAMBDA_USE_LOCAL_DEP
7069
package.dependencies += [
7170
.package(url: "https://github.com/swift-server/swift-aws-lambda-runtime.git", branch: "main")
7271
]
73-
}
72+
}

Examples/Soto/Sources/main.swift

+3-4
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,8 @@
1212
//
1313
//===----------------------------------------------------------------------===//
1414

15-
import AWSLambdaRuntime
1615
import AWSLambdaEvents
17-
16+
import AWSLambdaRuntime
1817
import SotoS3
1918

2019
let client = AWSClient()
@@ -25,8 +24,8 @@ func handler(event: APIGatewayV2Request, context: LambdaContext) async throws ->
2524
var response: APIGatewayV2Response
2625
do {
2726
context.logger.debug("Reading list of buckets")
28-
29-
// read the list of buckets
27+
28+
// read the list of buckets
3029
let bucketResponse = try await s3.listBuckets()
3130
let bucketList = bucketResponse.buckets?.compactMap { $0.name }
3231
response = APIGatewayV2Response(statusCode: .ok, body: bucketList?.joined(separator: "\n"))

0 commit comments

Comments
 (0)