[sim800l] clang-tidy fixes for #7822 (#7856)

This commit is contained in:
Keith Burzinski 2024-11-26 03:54:16 -06:00 committed by GitHub
parent 2d4688a206
commit e6bd2238ce
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -324,7 +324,7 @@ void Sim800LComponent::parse_cmd_(std::string message) {
this->sms_received_callback_.call(this->message_, this->sender_);
this->state_ = STATE_RECEIVED_SMS;
} else {
if (this->message_.length() > 0)
if (!this->message_.empty())
this->message_ += "\n";
this->message_ += message;
}