Skip to content

Commit

Permalink
Merge pull request #36 from ahmdyasser/main
Browse files Browse the repository at this point in the history
Add `@discardableResult` to load function
  • Loading branch information
finestructure authored Dec 8, 2023
2 parents b2da637 + f8151f6 commit f3bb6e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions Sources/SPIManifest/Manifest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ extension Manifest {
return try? load(at: path)
}

@discardableResult
public static func load(at path: String) throws -> Self {
guard Current.fileManager.fileExists(atPath: path) else {
throw ManifestError.invalidPath(path: path)
Expand Down
3 changes: 1 addition & 2 deletions Sources/validate-spi-manifest/Validator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import Glibc

import SPIManifest


@main
enum Validator {
static func main() {
Expand All @@ -17,7 +16,7 @@ enum Validator {
}

do {
_ = try SPIManifest.Manifest.load(at: path)
try SPIManifest.Manifest.load(at: path)
} catch {
print("🔴 \(error)")
exit(2)
Expand Down

0 comments on commit f3bb6e1

Please sign in to comment.