Skip to content

Commit

Permalink
Fix formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
rismay committed Jul 23, 2024
1 parent dae8654 commit d86a117
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 10 deletions.
15 changes: 8 additions & 7 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// swift-tools-version:5.10
import Foundation
import PackageDescription

// MARK: - Configuration Service
Expand Down Expand Up @@ -30,22 +31,22 @@ let package = Package(
.watchOS(.v9),
],
products: [
.library(name: "WrkstrmFoundation", targets: ["WrkstrmFoundation"]),
.library(name: "WrkstrmFoundation", targets: ["WrkstrmFoundation"])
],
dependencies: ConfigurationService.inject.dependencies,
targets: [
.target(
name: "WrkstrmFoundation",
dependencies: ["WrkstrmLog", "WrkstrmMain"],
swiftSettings: ConfigurationService.inject.swiftSettings),
swiftSettings: ConfigurationService.inject.swiftSettings
),
.testTarget(
name: "WrkstrmFoundationTests",
dependencies: ["WrkstrmFoundation"],
swiftSettings: ConfigurationService.inject.swiftSettings),
])

// CONFIG_SERVICE_START_V1_HASH:{{CONFIG_HASH}}
import Foundation
swiftSettings: ConfigurationService.inject.swiftSettings
),
]
)

// MARK: - Configuration Service

Expand Down
3 changes: 2 additions & 1 deletion Sources/WrkstrmFoundation/JSON/JSONCoders.swift
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ private enum Decoding {
let error =
DecodingError.Context(
codingPath: decoder.codingPath,
debugDescription: "Error Decoding Date \(dateString)")
debugDescription: "Error Decoding Date \(dateString)"
)
throw DecodingError.valueNotFound(Date.self, error)
}
}
6 changes: 4 additions & 2 deletions Sources/WrkstrmFoundation/Persistence/CodableArchiver.swift
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@ extension CodableArchiver {
try? fileManager.createDirectory(
at: archiveDirectory,
withIntermediateDirectories: true,
attributes: nil)
attributes: nil
)

return NSKeyedArchiver.archiveRootObject(data, toFile: filePathForKey(key ?? self.key))
}
Expand All @@ -133,7 +134,8 @@ extension CodableArchiver {
try? fileManager.createDirectory(
at: archiveDirectory,
withIntermediateDirectories: true,
attributes: nil)
attributes: nil
)

return NSKeyedArchiver.archiveRootObject(encodedValues, toFile: filePathForKey(key ?? self.key))
}
Expand Down

0 comments on commit d86a117

Please sign in to comment.