diff options
author | David Robillard <d@drobilla.net> | 2020-11-12 01:43:03 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-11-12 01:47:43 +0100 |
commit | f8d95542492a8a960853c0cb0b855d2473c941a0 (patch) | |
tree | 2683db5d1cbcc5bca04b46a0e0dbf932530e5e9b /include/raul | |
parent | a44c8444f05b860580eddd3c057a49af33c4b090 (diff) | |
download | raul-f8d95542492a8a960853c0cb0b855d2473c941a0.tar.gz raul-f8d95542492a8a960853c0cb0b855d2473c941a0.tar.bz2 raul-f8d95542492a8a960853c0cb0b855d2473c941a0.zip |
Simplify boolean return expression
Diffstat (limited to 'include/raul')
-rw-r--r-- | include/raul/Socket.hpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/include/raul/Socket.hpp b/include/raul/Socket.hpp index 579a5cd..ed5204f 100644 --- a/include/raul/Socket.hpp +++ b/include/raul/Socket.hpp @@ -205,11 +205,7 @@ Socket::connect(const std::string& uri) inline bool Socket::listen() { - if (::listen(_sock, 64) == -1) { - return false; - } else { - return true; - } + return ::listen(_sock, 64) != -1; } inline std::shared_ptr<Socket> |