diff options
author | iphydf <iphydf@users.noreply.github.com> | 2018-07-19 21:47:51 +0000 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2018-07-21 14:22:41 +0000 |
commit | 9a96bb9a5bb414afb137c094f987740581ecebda (patch) | |
tree | 91755a98acd3052714122f8e7e804ec1c5468d73 /.travis/cmake-freebsd-install.sh | |
parent | 253abe5de4cc96f767911ede291a341b55e2de0f (diff) |
Reduce nesting by doing more early returns on error.
This almost entirely avoids any else-after-return in toxcore. One case is
left, and that one is more readable this way.
Why no else after return: https://llvm.org/docs/CodingStandards.html#don-t-use-else-after-a-return
Why exemptions exist: https://blog.mozilla.org/nnethercote/2009/08/31/no-else-after-return-considered-harmful/
Diffstat (limited to '.travis/cmake-freebsd-install.sh')
0 files changed, 0 insertions, 0 deletions