summaryrefslogtreecommitdiff
path: root/.travis/cmake-freebsd-install.sh
diff options
context:
space:
mode:
authoriphydf <iphydf@users.noreply.github.com>2018-07-19 21:47:51 +0000
committeriphydf <iphydf@users.noreply.github.com>2018-07-21 14:22:41 +0000
commit9a96bb9a5bb414afb137c094f987740581ecebda (patch)
tree91755a98acd3052714122f8e7e804ec1c5468d73 /.travis/cmake-freebsd-install.sh
parent253abe5de4cc96f767911ede291a341b55e2de0f (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