mirror of
https://github.com/esphome/esphome.git
synced 2025-09-27 07:32:22 +01:00
Activate some clang-tidy checks (#1884)
This commit is contained in:
@@ -13,8 +13,8 @@ void HttpRequestComponent::dump_config() {
|
||||
}
|
||||
|
||||
void HttpRequestComponent::set_url(std::string url) {
|
||||
this->url_ = url;
|
||||
this->secure_ = url.compare(0, 6, "https:") == 0;
|
||||
this->url_ = std::move(url);
|
||||
this->secure_ = this->url_.compare(0, 6, "https:") == 0;
|
||||
|
||||
if (!this->last_url_.empty() && this->url_ != this->last_url_) {
|
||||
// Close connection if url has been changed
|
||||
|
Reference in New Issue
Block a user