Skip to content

Commit cdd5eac

Browse files
ci: fix build
1 parent b275684 commit cdd5eac

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/modules/ARRModule.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ bool ARRModule::addPriorityShortname(const char* shortname)
468468
bool ARRModule::addPriorityShortname(const String& shortname)
469469
{
470470
// Input validation
471-
if (shortname.isEmpty() || shortname.length() > MAX_SHORTNAME_LENGTH) {
471+
if (shortname.length() == 0 || shortname.length() > MAX_SHORTNAME_LENGTH) {
472472
LOG_WARN("ARR: Invalid shortname length: %d (max: %d)", shortname.length(), MAX_SHORTNAME_LENGTH);
473473
return false;
474474
}
@@ -493,7 +493,7 @@ bool ARRModule::addPriorityShortname(const String& shortname)
493493

494494
bool ARRModule::removePriorityShortname(const String& shortname)
495495
{
496-
if (shortname.isEmpty()) {
496+
if (shortname.length() == 0) {
497497
return false;
498498
}
499499

@@ -814,4 +814,4 @@ bool ARRModule::shouldRequestNodeInfo(NodeNum nodeId, uint32_t timeSinceHeard)
814814
((now - lastRequestIt->second) > NODE_INFO_REQUEST_COOLDOWN);
815815

816816
return dataIsGettingStale && requestCooldownExpired;
817-
}
817+
}

0 commit comments

Comments
 (0)