diff options
author | David Robillard <d@drobilla.net> | 2020-12-19 11:58:34 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-12-19 12:02:24 +0100 |
commit | 2a09c19703b242aaf693e5b52a70c1ad65332119 (patch) | |
tree | fcaf9fdffa4dcb80a74fc4e1b2c90e81e7e20fb6 /test/socket_test.cpp | |
parent | 5680e5900f6fb89ec66af6480a7d125fc8960552 (diff) | |
download | raul-2a09c19703b242aaf693e5b52a70c1ad65332119.tar.gz raul-2a09c19703b242aaf693e5b52a70c1ad65332119.tar.bz2 raul-2a09c19703b242aaf693e5b52a70c1ad65332119.zip |
Avoid "else" after "return"
Diffstat (limited to 'test/socket_test.cpp')
-rw-r--r-- | test/socket_test.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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; } |