mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 00:09:51 +03:00
code cleanup - sonarlint
This commit is contained in:
@@ -134,7 +134,7 @@ bool WebSchedulerService::command_setvalue(const char * value, const int8_t id,
|
||||
|
||||
// process json output for info/commands and value_info
|
||||
bool WebSchedulerService::get_value_info(JsonObject output, const char * cmd) {
|
||||
if (scheduleItems_->size() == 0) {
|
||||
if (scheduleItems_->empty()) {
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -233,7 +233,7 @@ void WebSchedulerService::publish(const bool force) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (scheduleItems_->size() == 0) {
|
||||
if (scheduleItems_->empty()) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -449,7 +449,7 @@ void WebSchedulerService::loop() {
|
||||
static uint32_t last_uptime_sec = 0;
|
||||
|
||||
// get list of scheduler events and exit if it's empty
|
||||
if (scheduleItems_->size() == 0) {
|
||||
if (scheduleItems_->empty()) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user