rspec/rules/S4524/compliant.adoc
2020-06-30 17:16:12 +02:00

16 lines
171 B
Plaintext

== Compliant Solution
----
switch (param) {
case 0:
doSomething();
break;
case 1:
doSomethingElse();
break;
default:
error();
break;
}
----