rspec/rules/S1142/description.adoc

2 lines
250 B
Plaintext
Raw Normal View History

2020-06-30 12:47:33 +02:00
Having too many return statements in a function increases the function's essential complexity because the flow of execution is broken each time a return statement is encountered. This makes it harder to read and understand the logic of the function.