Code that looks like `if (b) { return x; } return y;` can be refactored to `return b ? x : y;`
Code that looks like
if (b) { return x; } return y;can be refactored toreturn b ? x : y;