1
0
mirror of https://github.com/esphome/esphome.git synced 2025-04-07 11:20:28 +01:00

Put back a couple nolints

This commit is contained in:
Keith Burzinski 2024-05-06 19:35:42 -05:00
parent 3a3e1c90b1
commit 6d335ceedd
No known key found for this signature in database
GPG Key ID: 802564C5F0EEFFBE

View File

@ -4,11 +4,11 @@ namespace esphome {
namespace ota {
#ifdef USE_OTA_STATE_CALLBACK
OTAGlobalCallback *global_ota_callback{nullptr};
OTAGlobalCallback *global_ota_callback{nullptr}; // NOLINT(cppcoreguidelines-avoid-non-const-global-variables)
OTAGlobalCallback *get_global_ota_callback() {
if (global_ota_callback == nullptr) {
global_ota_callback = new OTAGlobalCallback();
global_ota_callback = new OTAGlobalCallback(); // NOLINT(cppcoreguidelines-owning-memory)
}
return global_ota_callback;
}