zertosh / invariant

invariant
MIT License
1.22k stars 70 forks source link

removed nesting conditions #12

Closed Connormiha closed 8 years ago

Connormiha commented 8 years ago

I think that

if (condition) {
  return;
}
// some code

more pretty than

if (!condition) {
  // some code
}
zertosh commented 8 years ago

Thanks! But that's just a cosmetic change, so I don't think it's worth it- sorry.