rspec/rules/S4524/compliant.adoc

16 lines
171 B
Plaintext
Raw Normal View History

2020-06-30 12:49:37 +02:00
== Compliant Solution
----
switch (param) {
case 0:
doSomething();
break;
case 1:
doSomethingElse();
break;
default:
error();
break;
}
----