[REF] use early return for errors rather than confusing assignment
authoreileen <emcnaughton@wikimedia.org>
Thu, 3 Dec 2020 21:33:18 +0000 (10:33 +1300)
committereileen <emcnaughton@wikimedia.org>
Thu, 3 Dec 2020 21:35:44 +0000 (10:35 +1300)
commit6c8408954ac8e1da1973e68589594d6b36b30bc4
tree67f9a70e5a495b98fe391abfe372e611da1a9d69
parentfb199459f5974ecf0815a7fc3abf5cd82167df73
[REF] use early return for errors rather than confusing assignment

This just makes the code slightly clearer. The next if can go, but
needs to wait on another PR to be merged to avoid conflict
CRM/Contact/Import/Parser/Contact.php