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/build.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/build.cc')
-rw-r--r-- | src/build.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/build.cc b/src/build.cc index cd8df4e..a16593b 100644 --- a/src/build.cc +++ b/src/build.cc @@ -1033,7 +1033,7 @@ bool Builder::FinishCommand(CommandRunner::Result* result, string* err) { } if (!deps_type.empty() && !config_.dry_run) { - assert(edge->outputs_.size() >= 1 && "should have been rejected by parser"); + assert(!edge->outputs_.empty() && "should have been rejected by parser"); for (std::vector<Node*>::const_iterator o = edge->outputs_.begin(); o != edge->outputs_.end(); ++o) { TimeStamp deps_mtime = disk_interface_->Stat((*o)->path(), err); |