Skip to content

Commit f83e398

Browse files
committed
cleaning code
1 parent d15d154 commit f83e398

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

contracts/data/EnumerableSet.sol

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ library EnumerableSet {
159159
bytes32[] memory arr = new bytes32[](len);
160160

161161
unchecked {
162-
for (uint256 index = 0; index < len; index++) {
162+
for (uint256 index; index < len; ++index) {
163163
arr[index] = at(set, index);
164164
}
165165
}
@@ -176,7 +176,7 @@ library EnumerableSet {
176176
address[] memory arr = new address[](len);
177177

178178
unchecked {
179-
for (uint256 index = 0; index < len; index++) {
179+
for (uint256 index; index < len; ++index) {
180180
arr[index] = at(set, index);
181181
}
182182
}
@@ -193,7 +193,7 @@ library EnumerableSet {
193193
uint256[] memory arr = new uint256[](len);
194194

195195
unchecked {
196-
for (uint256 index = 0; index < len; index++) {
196+
for (uint256 index; index < len; ++index) {
197197
arr[index] = at(set, index);
198198
}
199199
}

0 commit comments

Comments
 (0)