rspec/rules/S1126/rule.adoc

24 lines
243 B
Plaintext
Raw Normal View History

== Why is this an issue?
2020-06-30 12:47:33 +02:00
include::description.adoc[]
=== Noncompliant code example
[source,text]
----
if (expression) {
return true;
} else {
return false;
}
----
=== Compliant solution
[source,text]
----
return expression;
----
2020-06-30 12:47:33 +02:00