rspec/rules/S1168/description.adoc

4 lines
245 B
Plaintext
Raw Permalink Normal View History

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.
2021-02-02 15:02:10 +01:00
2021-01-27 13:42:22 +01:00
Moreover, in many cases, ``++null++`` is used as a synonym for empty.