Skip to content

Instantly share code, notes, and snippets.

@taotetek
Created December 10, 2014 20:11
Show Gist options
  • Save taotetek/0af2c6b9a6fd109d8d3c to your computer and use it in GitHub Desktop.
Save taotetek/0af2c6b9a6fd109d8d3c to your computer and use it in GitHub Desktop.
if foo {
return bar
}
return baz
@kapusta
Copy link

kapusta commented Dec 10, 2014

return ((foo) ? bar : baz); // fixed it for you

@taotetek
Copy link
Author

syntax error: unexpected ?

@kapusta
Copy link

kapusta commented Dec 10, 2014

it's a contextless one liner!

@acadien
Copy link

acadien commented Dec 10, 2014

Get a room you two.

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