LibIPC: Remove unnecessary pollfds.is_empty() check

This commit is contained in:
Aliaksandr Kalenik 2025-04-10 14:55:36 +02:00
parent fd784ddb15
commit 69f3f74f39

View file

@ -77,8 +77,7 @@ TransportSocket::TransportSocket(NonnullOwnPtr<Core::LocalSocket> socket)
{
Vector<struct pollfd, 1> pollfds;
if (pollfds.is_empty())
pollfds.append({ .fd = m_socket->fd().value(), .events = POLLOUT, .revents = 0 });
pollfds.append({ .fd = m_socket->fd().value(), .events = POLLOUT, .revents = 0 });
ErrorOr<int> result { 0 };
do {