Skip to content
This repository has been archived by the owner on Jan 5, 2020. It is now read-only.

Please update pod. #5

Open
muizidn opened this issue Apr 11, 2019 · 0 comments
Open

Please update pod. #5

muizidn opened this issue Apr 11, 2019 · 0 comments

Comments

@muizidn
Copy link
Contributor

muizidn commented Apr 11, 2019

Although

public static func chdir<T>(_ path: String = "~", closure: (() -> T)) -> T {
        let pwd = Dir.pwd
        Dir.chdir(path)
        let result = closure()
        Dir.chdir(pwd)
        return result
 }

But if you install through Pod it still

public static func chdir<T>(_ path: String = "~", closure: ((Void) -> T)) -> T {
        let pwd = Dir.pwd
        Dir.chdir(path)
        let result = closure()
        Dir.chdir(pwd)
        return result
}

Which in Swift 4 or later will generate error since it must pass tuple () to closure.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant