Fix clang-tidy complaint

This commit is contained in:
steve 2021-08-28 15:40:02 +10:00
parent 60891b4d01
commit 1bbea5c79b

View file

@ -155,7 +155,7 @@ void LTR390Component::setup() {
void LTR390Component::dump_config() { LOG_I2C_DEVICE(this); }
void LTR390Component::update() {
if (!this->reading_ && mode_funcs_.size() > 0) {
if (!this->reading_ && !mode_funcs_.empty()) {
this->reading_ = true;
this->read_mode_(0);
}