forked from bblanchon/ArduinoJson
Removed a useless line of code
This commit is contained in:
1 parent
96245dd3b4
commit
8b66a25f66
1 file changed
-1
@@ -68,7 +68,6 @@ class BlockJsonBuffer : public JsonBuffer {
|
||||
|
||||
void* allocInNewBlock(size_t bytes) {
|
||||
size_t capacity = _nextBlockSize;
|
||||
if (_head != NULL) capacity = _head->capacity * 2;
|
||||
if (bytes > capacity) capacity = bytes;
|
||||
if (!addNewBlock(capacity)) return NULL;
|
||||
_nextBlockSize *= 2;
|
||||
|
||||
Reference in new issue
Block a user