mirror of
https://github.com/eledio-devices/thirdparty-ArduinoJson.git
synced 2025-11-01 00:38:27 +01:00
Added a line-break after each "if" to get more accurate coverage report
This commit is contained in:
@@ -11,12 +11,14 @@ namespace ARDUINOJSON_NAMESPACE {
|
||||
|
||||
template <typename TAdaptedString>
|
||||
inline bool slotSetKey(VariantSlot* var, TAdaptedString key, MemoryPool* pool) {
|
||||
if (!var) return false;
|
||||
if (!var)
|
||||
return false;
|
||||
if (key.isStatic()) {
|
||||
var->setLinkedKey(make_not_null(key.data()));
|
||||
} else {
|
||||
const char* dup = key.save(pool);
|
||||
if (!dup) return false;
|
||||
if (!dup)
|
||||
return false;
|
||||
var->setOwnedKey(make_not_null(dup));
|
||||
}
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user