code cleanup - sonarlint

This commit is contained in:
proddy
2024-10-02 09:02:24 +02:00
parent 465f14a113
commit e5b98dadde
21 changed files with 97 additions and 119 deletions

View File

@@ -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;
}