CodeNarc: Improve unneeded return keyword - Ternary & Conditions Should fail: def x = { if (it) return x else return y } def x = { if (it) {return x} else {return y} } def x = { it ? return x : return y } def x = { it ?: return y }
Log in to post a comment.