Closed rafaeldev closed 2 weeks ago
There's no requirement to return a boolean, as nil
is also a falsy value. I usually just don't bother to return a false
.
I formatted all the files with rubocop and they replaced this with false
, so I'm not particularly keen on switching this back.
Closed via aad75f946b4ef874573b9b99f337126f45fb4a44
Is any decision to been #valid? methods returns
nil
instead offalse
?https://github.com/fnando/cpf_cnpj/blob/e31d0169789edc14717440f87a5eb3d4565be5db/lib/cpf.rb#L58