Skip to content

Commit 4612ea7

Browse files
committed
Add typed throw
1 parent 9673de1 commit 4612ea7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Sources/GateEngine/System/Platforms/Platform Implementations/Apple/UIKit/UIKitPlatform.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public struct UIKitPlatform: PlatformProtocol, InternalPlatformProtocol {
8686
return nil
8787
}
8888

89-
public func synchronousLoadResource(from path: String) throws -> Data {
89+
public func synchronousLoadResource(from path: String) throws(GateEngineError) -> Data {
9090
if let resolvedPath = synchronousLocateResource(from: path) {
9191
do {
9292
return try synchronousFileSystem.read(from: resolvedPath)

Sources/GateEngine/System/Platforms/Platform Implementations/Win32/Win32Platform.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public final class Win32Platform: PlatformProtocol, InternalPlatformProtocol {
7777
return nil
7878
}
7979

80-
public func synchronousLoadResource(from path: String) throws -> Data {
80+
public func synchronousLoadResource(from path: String) throws(GateEngineError) -> Data {
8181
if let resolvedPath = synchronousLocateResource(from: path) {
8282
do {
8383
return try synchronousFileSystem.read(from: resolvedPath)

0 commit comments

Comments
 (0)