From 53449f298e1592b48c4027b12c54db6f6b533c99 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sat, 2 Aug 2025 22:45:13 -1000 Subject: [PATCH] lint --- esphome/core/application.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/esphome/core/application.cpp b/esphome/core/application.cpp index 3e6ddb56ed..0467b0b57f 100644 --- a/esphome/core/application.cpp +++ b/esphome/core/application.cpp @@ -472,9 +472,10 @@ void Application::unregister_socket_fd(int fd) { // Only recalculate max_fd if we removed the current max if (fd == this->max_fd_) { this->max_fd_ = -1; - for (int sock_fd : this->socket_fds_) + for (int sock_fd : this->socket_fds_) { if (sock_fd > this->max_fd_) this->max_fd_ = sock_fd; + } } return; }