From cc3e01dd856184feb48c0bde9f812158cddae7af Mon Sep 17 00:00:00 2001 From: Oighty Date: Wed, 18 Sep 2024 16:41:43 -0500 Subject: [PATCH] chore: lint --- src/test/lib/solady/DynamicBufferLib.sol | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/src/test/lib/solady/DynamicBufferLib.sol b/src/test/lib/solady/DynamicBufferLib.sol index c96a874c..2fff1f97 100644 --- a/src/test/lib/solady/DynamicBufferLib.sol +++ b/src/test/lib/solady/DynamicBufferLib.sol @@ -43,11 +43,7 @@ library DynamicBufferLib { // and another extra word as a safety word (giving a total of 0x40 bytes). // Without the safety word, the data at the next free memory word can be overwritten, // because the backwards copying can exceed the buffer space used for storage. - for { - - } iszero(lt(newBufferDataLength, capacity)) { - - } { + for {} iszero(lt(newBufferDataLength, capacity)) {} { // Approximately double the memory with a heuristic, // ensuring more than enough space for the combined data, // rounding up to the next multiple of 32. @@ -67,9 +63,7 @@ library DynamicBufferLib { // Copy `bufferData` one word at a time, backwards. for { let o := and(add(bufferDataLength, 32), w) - } 1 { - - } { + } 1 {} { mstore(add(newBufferData, o), mload(add(bufferData, o))) o := add(o, w) // `sub(o, 0x20)`. if iszero(o) { @@ -93,9 +87,7 @@ library DynamicBufferLib { // Copy `data` one word at a time, backwards. for { let o := and(add(mload(data), 32), w) - } 1 { - - } { + } 1 {} { mstore(add(output, o), mload(add(data, o))) o := add(o, w) // `sub(o, 0x20)`. if iszero(o) {