Skip to content

Commit 4d40d66

Browse files
committed
Fix up a clang-tidy nit about using empty rather than size == 0.
1 parent c750847 commit 4d40d66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/source/Host/common/TCPSocket.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ Status TCPSocket::Listen(llvm::StringRef name, int backlog) {
238238
m_listen_sockets[fd] = address;
239239
}
240240

241-
if (m_listen_sockets.size() == 0) {
241+
if (m_listen_sockets.empty()) {
242242
assert(error.Fail());
243243
return error;
244244
}

0 commit comments

Comments
 (0)