Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Nießen <tniessen@tnie.de>2020-07-20 00:14:56 +0300
committerJames M Snell <jasnell@gmail.com>2020-08-11 23:22:04 +0300
commit1be7bbdc3b533759072cfc3d13766511197e3d01 (patch)
tree1428a01ca9e82cc939fc64e687ce51c4751aa044 /src/node_file-inl.h
parentf280d2c85cf5bcf2cbe277de5a1f410a68c7a562 (diff)
src: prefer C++ empty() in boolean expressions
PR-URL: https://github.com/nodejs/node/pull/34432 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Jiawen Geng <technicalcute@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: David Carlier <devnexen@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
Diffstat (limited to 'src/node_file-inl.h')
-rw-r--r--src/node_file-inl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node_file-inl.h b/src/node_file-inl.h
index 2ad8c73f05e..0188261b7dc 100644
--- a/src/node_file-inl.h
+++ b/src/node_file-inl.h
@@ -28,7 +28,7 @@ void FSContinuationData::MaybeSetFirstPath(const std::string& path) {
}
std::string FSContinuationData::PopPath() {
- CHECK_GT(paths_.size(), 0);
+ CHECK(!paths_.empty());
std::string path = std::move(paths_.back());
paths_.pop_back();
return path;