Skip to content

Commit f8317c3

Browse files
sebstojbelkins
andauthored
Update Examples/MultiSourceAPI/Package.swift
Co-authored-by: Josh Elkins <[email protected]>
1 parent 3401b76 commit f8317c3

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

Examples/MultiSourceAPI/Package.swift

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,12 @@ if let localDepsPath = Context.environment["LAMBDA_USE_LOCAL_DEPS"],
3333
v.isDirectory == true
3434
{
3535
let indexToRemove = package.dependencies.firstIndex { dependency in
36-
if case .sourceControl(
37-
name: _,
38-
location: "https://github.com/awslabs/swift-aws-lambda-runtime.git",
39-
requirement: _
40-
) = dependency.kind {
36+
switch dependency.kind {
37+
case .sourceControl(name: _, location: "https://github.com/awslabs/swift-aws-lambda-runtime.git", requirement: _):
4138
return true
39+
default:
40+
return false
4241
}
43-
return false
4442
}
4543
if let indexToRemove {
4644
package.dependencies.remove(at: indexToRemove)

0 commit comments

Comments
 (0)