Skip to content

Commit

Permalink
Run swift-format
Browse files Browse the repository at this point in the history
  • Loading branch information
mbrandonw authored and github-actions[bot] committed Aug 29, 2024
1 parent 2ed7c33 commit 642e6aa
Show file tree
Hide file tree
Showing 4 changed files with 1,060 additions and 1,060 deletions.
5 changes: 2 additions & 3 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// swift-tools-version: 5.9

import CompilerPluginSupport
import Foundation
import PackageDescription

let package = Package(
Expand Down Expand Up @@ -51,8 +52,6 @@ let package = Package(
)
#endif

import Foundation

if ProcessInfo.processInfo.environment["OMIT_MACRO_TESTS"] == nil {
package.dependencies.append(
.package(url: "https://github.com/pointfreeco/swift-macro-testing", from: "0.2.0")
Expand All @@ -65,7 +64,7 @@ if ProcessInfo.processInfo.environment["OMIT_MACRO_TESTS"] == nil {
.product(
name: "MacroTesting",
package: "swift-macro-testing"
)
),
]
)
)
Expand Down
5 changes: 2 additions & 3 deletions [email protected]
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// swift-tools-version: 6.0

import CompilerPluginSupport
import Foundation
import PackageDescription

let package = Package(
Expand Down Expand Up @@ -52,8 +53,6 @@ let package = Package(
)
#endif

import Foundation

if ProcessInfo.processInfo.environment["OMIT_MACRO_TESTS"] == nil {
package.dependencies.append(
.package(url: "https://github.com/pointfreeco/swift-macro-testing", from: "0.2.0")
Expand All @@ -66,7 +65,7 @@ if ProcessInfo.processInfo.environment["OMIT_MACRO_TESTS"] == nil {
.product(
name: "MacroTesting",
package: "swift-macro-testing"
)
),
]
)
)
Expand Down
8 changes: 5 additions & 3 deletions Sources/CasePaths/EnumReflection.swift
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,11 @@ func extractHelp<Root, Value>(
return { root in
let rootTag = metadata.tag(of: root)

if case let (cachedTag?, (isIndirect: isIndirect, associatedValueType: associatedValueType)?) = cache.withLock({
($0.tag, $0.strategy)
}) {
if case let (cachedTag?, (isIndirect: isIndirect, associatedValueType: associatedValueType)?) =
cache.withLock({
($0.tag, $0.strategy)
})
{
guard rootTag == cachedTag else { return nil }
let value =
EnumMetadata
Expand Down
Loading

0 comments on commit 642e6aa

Please sign in to comment.