Skip to content

Instantly share code, notes, and snippets.

@MarcinMoskala
Created March 3, 2019 10:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MarcinMoskala/e96005f13616b50c157c4d93d7845ede to your computer and use it in GitHub Desktop.
Save MarcinMoskala/e96005f13616b50c157c4d93d7845ede to your computer and use it in GitHub Desktop.
fun processPerson(person: Person?) {
val name = person?.name ?: throw Error()
//...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment