Skip to content
This repository was archived by the owner on Oct 6, 2020. It is now read-only.

Commit 16ec458

Browse files
author
DrBeta
committed
Made the framework
1 parent 6d003bc commit 16ec458

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Sources/JSONLoader/JSONLoader.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import Foundation
22

3-
struct JSONLoader {
43
public func load<T: Decodable>(_ filename: String, as type:T.Type = T.self) -> T {
54
let data:Data
65
guard let file = Bundle.main.url(forResource: filename, withExtension: nil)
@@ -21,4 +20,4 @@ public func load<T: Decodable>(_ filename: String, as type:T.Type = T.self) -> T
2120
fatalError("Couldn't parse \(filename) as \(T.self)\n\(error)")
2221
}
2322
}
24-
}
23+

0 commit comments

Comments
 (0)