Skip to content

Instantly share code, notes, and snippets.

@polac24
Last active June 3, 2019 03:33
Show Gist options
  • Save polac24/30689c05118a3504241e05c5a3c019cb to your computer and use it in GitHub Desktop.
Save polac24/30689c05118a3504241e05c5a3c019cb to your computer and use it in GitHub Desktop.
class DatabaseStub {
var addUserAction: (String) -> Bool = { _ in
return false
}
func addUser(name: String) -> Bool {
return addUserAction(name)
}
}
@joesus
Copy link

joesus commented Jun 2, 2019

Extra parens after String. :)

@polac24
Copy link
Author

polac24 commented Jun 3, 2019

@joesus, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment