diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/.clang-tidy | 2 | ||||
-rw-r--r-- | test/socket_test.cpp | 4 |
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; } |