🍴 Switch to ternary for return
https://www.youtube.com/watch?v=XAbY2cmEsS0
This commit is contained in:
parent
42de6bc716
commit
5b0b7ba226
@ -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 = {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user