[dsmr] clang-tidy fixes for #7822 (#7848)

This commit is contained in:
Keith Burzinski 2024-11-26 03:47:57 -06:00 committed by GitHub
parent 11076e4614
commit 841d278224
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -296,7 +296,7 @@ void Dsmr::dump_config() {
}
void Dsmr::set_decryption_key(const std::string &decryption_key) {
if (decryption_key.length() == 0) {
if (decryption_key.empty()) {
ESP_LOGI(TAG, "Disabling decryption");
this->decryption_key_.clear();
if (this->crypt_telegram_ != nullptr) {