Make sure we always return a value in NodeDB::restorePreferences() (#9516)

In case FScom is not defined there is no return statement. This
moves the return outside of the ifdef to make sure a defined
value is returned.
This commit is contained in:
Eric Sesterhenn
2026-02-03 06:23:49 -06:00
committed by Ben Meadors
co-authored by Ben Meadors
parent 644fa5b54e
commit c8a9cdc148
+1 -1
View File
@@ -2213,8 +2213,8 @@ bool NodeDB::restorePreferences(meshtastic_AdminMessage_BackupLocation location,
} else if (location == meshtastic_AdminMessage_BackupLocation_SD) {
// TODO: After more mainline SD card support
}
return success;
#endif
return success;
}
/// Record an error that should be reported via analytics