Last active
June 3, 2019 03:33
-
-
Save polac24/30689c05118a3504241e05c5a3c019cb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class DatabaseStub { | |
var addUserAction: (String) -> Bool = { _ in | |
return false | |
} | |
func addUser(name: String) -> Bool { | |
return addUserAction(name) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Extra parens after String. :)