Commit 7895dc70 authored by Igor Sugak's avatar Igor Sugak Committed by Facebook Github Bot

remove always true if-predicate (gcc-5 -Wlogical-op)

Summary:
gcc-5 -Wlogical-op reports:
```lang=bash
folly/io/async/AsyncSSLSocket.cpp: In member function 'void folly::AsyncSSLSocket::invalidState(folly::AsyncSSLSocket::HandshakeCB*)':
folly/io/async/AsyncSSLSocket.cpp:418:35: error: logical 'or' of collectively exhaustive tests is always true [-Werror=logical-op]
```

Reviewed By: yfeldblum

Differential Revision: D4391317

fbshipit-source-id: c0f5ce748f1fc21678e4080c7f6351e7fada1e2b
parent 3cec19d4
...@@ -414,10 +414,7 @@ void AsyncSSLSocket::invalidState(HandshakeCB* callback) { ...@@ -414,10 +414,7 @@ void AsyncSSLSocket::invalidState(HandshakeCB* callback) {
callback->handshakeErr(this, ex); callback->handshakeErr(this, ex);
} }
// Check the socket state not the ssl state here. failHandshake(__func__, ex);
if (state_ != StateEnum::CLOSED || state_ != StateEnum::ERROR) {
failHandshake(__func__, ex);
}
} }
void AsyncSSLSocket::sslAccept( void AsyncSSLSocket::sslAccept(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment