Skip to content

Commit a42741d

Browse files
committed
Run formatter
1 parent 74a93cc commit a42741d

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

Examples/LocalDebugging/Shared/Package.swift

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,12 @@ let package = Package(
1010
],
1111
dependencies: [],
1212
targets: [
13-
.target(name: "Shared", dependencies: [], resources: [
14-
.process("Resources")
15-
])
13+
.target(
14+
name: "Shared",
15+
dependencies: [],
16+
resources: [
17+
.process("Resources")
18+
]
19+
)
1620
]
1721
)

Plugins/AWSLambdaPackager/Plugin.swift

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -235,16 +235,16 @@ struct AWSLambdaPackager: CommandPlugin {
235235

236236
// add resources
237237
var artifactPathComponents = artifactPath.pathComponents
238-
_ = artifactPathComponents.removeFirst() // Get rid of beginning "/"
239-
_ = artifactPathComponents.removeLast() // Get rid of the name of the package
238+
_ = artifactPathComponents.removeFirst() // Get rid of beginning "/"
239+
_ = artifactPathComponents.removeLast() // Get rid of the name of the package
240240
let artifactDirectory = "/\(artifactPathComponents.joined(separator: "/"))"
241241
for fileInArtifactDirectory in try FileManager.default.contentsOfDirectory(atPath: artifactDirectory) {
242242
guard let artifactURL = URL(string: "\(artifactDirectory)/\(fileInArtifactDirectory)") else {
243243
continue
244244
}
245-
245+
246246
guard artifactURL.pathExtension == "resources" else {
247-
continue // Not resources, so don't copy
247+
continue // Not resources, so don't copy
248248
}
249249
let resourcesDirectoryName = artifactURL.lastPathComponent
250250
let relocatedResourcesDirectory = workingDirectory.appending(path: resourcesDirectoryName)
@@ -256,7 +256,6 @@ struct AWSLambdaPackager: CommandPlugin {
256256
arguments.append(resourcesDirectoryName)
257257
}
258258
}
259-
260259

261260
// run the zip tool
262261
try Utils.execute(

0 commit comments

Comments
 (0)