rspec/rules/S1168/description.adoc
2021-09-03 09:17:11 +02:00

4 lines
245 B
Plaintext

Returning ``++null++`` instead of an actual array, collection or map forces callers of the method to explicitly test for nullity, making them more complex and less readable.
Moreover, in many cases, ``++null++`` is used as a synonym for empty.