File tree 3 files changed +4
-7
lines changed
3 files changed +4
-7
lines changed Original file line number Diff line number Diff line change 1
- // swift-tools-version:4.2
1
+ // swift-tools-version:5.0
2
+ // The swift-tools-version declares the minimum version of Swift required to build this package.
2
3
3
4
import PackageDescription
4
5
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ public class Runtime {
30
30
throw RuntimeError . missingEnvironmentVariables
31
31
}
32
32
33
- guard let periodIndex = handler. index ( of: " . " ) else {
33
+ guard let periodIndex = handler. firstIndex ( of: " . " ) else {
34
34
throw RuntimeError . invalidHandlerName
35
35
}
36
36
Original file line number Diff line number Diff line change 1
1
import Foundation
2
2
3
- // Remove when moving to swift 5
4
- enum HandlerResult {
5
- case success( Data )
6
- case failure( Error )
7
- }
3
+ typealias HandlerResult = Result < Data , Error >
8
4
9
5
protocol SyncHandler {
10
6
func apply( inputData: Data , context: Context ) throws -> Data
You can’t perform that action at this time.
0 commit comments