From c46adb2c73d9c18b71b0d5f6beca233b48c7bee4 Mon Sep 17 00:00:00 2001 From: Michael Davidson Date: Tue, 23 Jan 2024 22:33:53 +1100 Subject: [PATCH] Clang tidy fixes --- esphome/components/graphical_layout/text_run_panel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome/components/graphical_layout/text_run_panel.cpp b/esphome/components/graphical_layout/text_run_panel.cpp index 4ea4e9327d..88c8fda9bd 100644 --- a/esphome/components/graphical_layout/text_run_panel.cpp +++ b/esphome/components/graphical_layout/text_run_panel.cpp @@ -97,7 +97,7 @@ std::vector> TextRunPanel::split_runs_into_wo can_wrap_at_args.offset = i; prop.can_wrap = this->can_wrap_at_character_.value(can_wrap_at_args); - if ((current_text_run == nullptr) || (current_text_run->run_properties.is_equivalent(prop) == false)) { + if ((current_text_run == nullptr) || (!current_text_run->run_properties.is_equivalent(prop))) { current_text_run = std::make_shared(run, prop); runs.push_back(current_text_run); }