Problem: redundant else after return

Solution: remove else
This commit is contained in:
Simon Giesecke
2018-05-25 23:10:10 +02:00
parent 21498700ef
commit 12a97bb769
22 changed files with 154 additions and 163 deletions

View File

@@ -770,7 +770,8 @@ int zmq::stream_engine_t::next_handshake_command (msg_t *msg_)
if (mechanism->status () == mechanism_t::ready) {
mechanism_ready ();
return pull_and_encode (msg_);
} else if (mechanism->status () == mechanism_t::error) {
}
if (mechanism->status () == mechanism_t::error) {
errno = EPROTO;
return -1;
} else {