🍴 Switch to ternary for return

https://www.youtube.com/watch?v=XAbY2cmEsS0
This commit is contained in:
Sam Saccone 2015-07-01 20:30:21 -07:00
parent 42de6bc716
commit 5b0b7ba226

View File

@ -80,11 +80,7 @@ class CodeGenerator {
if (checked >= 3) break;
}
if (occurences.single > occurences.double) {
return "single";
} else {
return "double";
}
return occurences.single > occurences.double ? "single" : "double";
}
static generators = {