mirror of
https://github.com/esphome/esphome.git
synced 2026-09-02 02:56:01 +00:00
remove unnecessary duration_ms update on early return
This commit is contained in:
@@ -231,7 +231,6 @@ int HttpContainerIDF::read(uint8_t *buf, size_t max_len) {
|
||||
|
||||
// Check if we've already read all expected content
|
||||
if (this->bytes_read_ >= this->content_length) {
|
||||
this->duration_ms += (millis() - start);
|
||||
return 0; // All content read successfully
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user