rspec/rules/S935/compliant.adoc
2022-02-04 16:28:24 +00:00

20 lines
175 B
Plaintext

== Compliant Solution
[source,text]
----
int my_func (int a)
{
if (a > 100)
{
return 12;
}
if (a > 80)
{
throw new Exception();
}
return a;
}
----