@masknet/no-single-return
Disallow single-return
Disallow Single Return
function isGood(battery: Battery) {
let out = false
if (battery.charge) out = true
if (battery.cycles < 10) out = true
return out
}
function isGood(battery: Battery) {
if (battery.charge) return true
if (battery.cycles < 10) return true
return false
}