Open alexandear opened 3 months ago
The PR refactors code from switch B { case true: ... case false: ...} to if B {...} else {...}, where B is simply boolean true or false.
switch B { case true: ... case false: ...}
if B {...} else {...}
B
true
false
The PR refactors code from
switch B { case true: ... case false: ...}
toif B {...} else {...}
, whereB
is simply booleantrue
orfalse
.