diff options
author | Tobias Nießen <tniessen@tnie.de> | 2018-05-20 18:05:25 +0300 |
---|---|---|
committer | Tobias Nießen <tniessen@tnie.de> | 2018-05-26 13:29:12 +0300 |
commit | 13493e99bfd208bc6e5381a918384049384cc2ed (patch) | |
tree | c544ab44d19bf906f1f09421cbe347396d365922 /src/inspector_io.cc | |
parent | c700cc42da9cf73af9fec2098520a6c0a631d901 (diff) |
src: add CHECK_IMPLIES macro
This change introduces the CHECK_IMPLIES macro
similar to its definition in v8 and replaces instances of
CHECK with CHECK_IMPLIES where it seems appropriate.
PR-URL: https://github.com/nodejs/node/pull/20914
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Diffstat (limited to 'src/inspector_io.cc')
-rw-r--r-- | src/inspector_io.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/inspector_io.cc b/src/inspector_io.cc index ce18e989737..29345124784 100644 --- a/src/inspector_io.cc +++ b/src/inspector_io.cc @@ -197,7 +197,7 @@ bool InspectorIo::Start() { } void InspectorIo::Stop() { - CHECK(state_ == State::kAccepting || !sessions_.empty()); + CHECK_IMPLIES(sessions_.empty(), state_ == State::kAccepting); Write(TransportAction::kKill, 0, StringView()); int err = uv_thread_join(&thread_); CHECK_EQ(err, 0); |