Skip to content

Commit

Permalink
replace deprecated function definition
Browse files Browse the repository at this point in the history
the curried format 'func foo(a: Int)(b: Int) { return a+b }'
has been deprecated.
  • Loading branch information
colinta committed Mar 24, 2016
1 parent 84e0224 commit 2b877f3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Source/Moya.swift
Original file line number Diff line number Diff line change
Expand Up @@ -188,9 +188,9 @@ public extension MoyaProvider {
public final class func ImmediatelyStub(_: Target) -> Moya.StubBehavior {
return .Immediate
}
public final class func DelayedStub(seconds: NSTimeInterval)(_: Target) -> Moya.StubBehavior {
return .Delayed(seconds: seconds)

public final class func DelayedStub(seconds: NSTimeInterval) -> (Target) -> Moya.StubBehavior {
return { _ in return .Delayed(seconds: seconds) }
}
}

Expand Down

0 comments on commit 2b877f3

Please sign in to comment.