summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-12-19 11:58:34 +0100
committerDavid Robillard <d@drobilla.net>2020-12-19 12:02:24 +0100
commit2a09c19703b242aaf693e5b52a70c1ad65332119 (patch)
treefcaf9fdffa4dcb80a74fc4e1b2c90e81e7e20fb6 /test
parent5680e5900f6fb89ec66af6480a7d125fc8960552 (diff)
downloadraul-2a09c19703b242aaf693e5b52a70c1ad65332119.tar.gz
raul-2a09c19703b242aaf693e5b52a70c1ad65332119.tar.bz2
raul-2a09c19703b242aaf693e5b52a70c1ad65332119.zip
Avoid "else" after "return"
Diffstat (limited to 'test')
-rw-r--r--test/.clang-tidy2
-rw-r--r--test/socket_test.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/test/.clang-tidy b/test/.clang-tidy
index 023fd87..4d343a6 100644
--- a/test/.clang-tidy
+++ b/test/.clang-tidy
@@ -22,11 +22,9 @@ Checks: >
-hicpp-no-array-decay,
-hicpp-no-malloc,
-hicpp-signed-bitwise,
- -llvm-else-after-return,
-llvmlibc-*,
-modernize-make-unique,
-modernize-use-trailing-return-type,
- -readability-else-after-return,
-readability-implicit-bool-conversion,
-readability-use-anyofallof,
CheckOptions:
diff --git a/test/socket_test.cpp b/test/socket_test.cpp
index 0a7a75c..bf0fd33 100644
--- a/test/socket_test.cpp
+++ b/test/socket_test.cpp
@@ -63,7 +63,9 @@ main()
if ((pfds[0].revents & POLLHUP) || pfds[1].revents & POLLHUP) {
break;
- } else if (ret == 0) {
+ }
+
+ if (ret == 0) {
fprintf(stderr, "poll returned with no data\n");
continue;
}