From 2e6dab89ff78fce39fe8cbbb5a6ef7df927fa464 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Thu, 30 Oct 2025 13:19:45 -0500 Subject: [PATCH] preen --- esphome/components/select/select.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/esphome/components/select/select.cpp b/esphome/components/select/select.cpp index 63192623d3..0c05a7b3bf 100644 --- a/esphome/components/select/select.cpp +++ b/esphome/components/select/select.cpp @@ -63,18 +63,16 @@ optional Select::index_of(const char *option) const { optional Select::active_index() const { if (this->has_state()) { return this->active_index_; - } else { - return {}; } + return {}; } optional Select::at(size_t index) const { if (this->has_index(index)) { const auto &options = traits.get_options(); return std::string(options.at(index)); - } else { - return {}; } + return {}; } const char *Select::option_at(size_t index) const { return traits.get_options().at(index); }