Skip to content

Commit f3bb6e1

Browse files
Merge pull request #36 from ahmdyasser/main
Add `@discardableResult` to load function
2 parents b2da637 + f8151f6 commit f3bb6e1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Sources/SPIManifest/Manifest.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ extension Manifest {
144144
return try? load(at: path)
145145
}
146146

147+
@discardableResult
147148
public static func load(at path: String) throws -> Self {
148149
guard Current.fileManager.fileExists(atPath: path) else {
149150
throw ManifestError.invalidPath(path: path)

Sources/validate-spi-manifest/Validator.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import Glibc
66

77
import SPIManifest
88

9-
109
@main
1110
enum Validator {
1211
static func main() {
@@ -17,7 +16,7 @@ enum Validator {
1716
}
1817

1918
do {
20-
_ = try SPIManifest.Manifest.load(at: path)
19+
try SPIManifest.Manifest.load(at: path)
2120
} catch {
2221
print("🔴 \(error)")
2322
exit(2)

0 commit comments

Comments
 (0)