Remove unnecessary nullptr guard — component is never null

This commit is contained in:
J. Nick Koston
2026-04-01 00:31:31 -10:00
parent 9f92df69f8
commit a9e81e6c42
-2
View File
@@ -521,8 +521,6 @@ WarnIfComponentBlockingGuard::warn_blocking(Component *component, uint32_t block
#ifdef USE_RUNTIME_STATS
void WarnIfComponentBlockingGuard::record_runtime_stats_() {
if (this->component_ == nullptr)
return;
uint32_t duration_us = micros() - this->started_us_;
this->component_->runtime_stats_.record_time(duration_us);
}