diff options
author | Rosen Penev <rosenp@gmail.com> | 2020-06-04 07:47:37 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-04 07:47:37 (GMT) |
commit | be6c7afcd1eb87b150a285043520d46d23674070 (patch) | |
tree | eaf967a820dd838f729aa5a27f16b471a2fc9792 /src/deps_log.cc | |
parent | a32a2087b65e9e858fbd1450555108bfda95adfb (diff) | |
download | Ninja-be6c7afcd1eb87b150a285043520d46d23674070.zip Ninja-be6c7afcd1eb87b150a285043520d46d23674070.tar.gz Ninja-be6c7afcd1eb87b150a285043520d46d23674070.tar.bz2 |
[clang-tidy] check empty instead of size (#1784)
Found with readability-container-size-empty
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Diffstat (limited to 'src/deps_log.cc')
-rw-r--r-- | src/deps_log.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/deps_log.cc b/src/deps_log.cc index cf55194..59a1956 100644 --- a/src/deps_log.cc +++ b/src/deps_log.cc @@ -399,7 +399,7 @@ bool DepsLog::RecordId(Node* node) { if (fwrite(&size, 4, 1, file_) < 1) return false; if (fwrite(node->path().data(), path_size, 1, file_) < 1) { - assert(node->path().size() > 0); + assert(!node->path().empty()); return false; } if (padding && fwrite("\0\0", padding, 1, file_) < 1) |