mirror of
https://github.com/eledio-devices/thirdparty-ArduinoJson.git
synced 2025-11-01 08:48:30 +01:00
Added a line-break after each "if" to get more accurate coverage report
This commit is contained in:
@@ -13,10 +13,12 @@ class RamStringAdapter : public ConstRamStringAdapter {
|
||||
RamStringAdapter(const char* str) : ConstRamStringAdapter(str) {}
|
||||
|
||||
char* save(MemoryPool* pool) const {
|
||||
if (!_str) return NULL;
|
||||
if (!_str)
|
||||
return NULL;
|
||||
size_t n = size() + 1;
|
||||
char* dup = pool->allocFrozenString(n);
|
||||
if (dup) memcpy(dup, _str, n);
|
||||
if (dup)
|
||||
memcpy(dup, _str, n);
|
||||
return dup;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user