Skip to content

Instantly share code, notes, and snippets.

@anaisbetts
Created October 13, 2011 22:31
Show Gist options
  • Save anaisbetts/1285741 to your computer and use it in GitHub Desktop.
Save anaisbetts/1285741 to your computer and use it in GitHub Desktop.
lock(something)
{
try
{
if (foo) // THIS
{
Bar();
}
else // LOOKS
{
Baz();
}
}
catch // RETARDED
{
Bamf();
}
}
//
// vs.
//
lock(something) { // Much better.
try {
if (foo) {
Bar();
} else {
Baz();
}
} catch {
Bamf();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment