Skip to content

Commit

Permalink
Use .empty instead of comparing size with zero
Browse files Browse the repository at this point in the history
  • Loading branch information
Bart Joy committed Jul 22, 2018
1 parent 69c327b commit cdad86c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TcpConnectionKiller/TcpConnectionKiller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ int main(const int argc, char const* argv[])
KillAll(rows);
cout << "Ensuring all connections were killed..." << endl;
auto const remainingRows = GetConnectionsFromProcess(processIdToKill);
if(remainingRows.size() != 0)
if(!remainingRows.empty())
{
throw exception("Not all connections were killed.");
}
Expand Down

0 comments on commit cdad86c

Please sign in to comment.