Added a line-break after each "if" to get more accurate coverage report

This commit is contained in:
Benoit Blanchon
2020-02-16 15:05:23 +01:00
parent 8f8c82d400
commit 0814fc185f
38 changed files with 429 additions and 214 deletions

View File

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