Skip to content

Commit

Permalink
Make clang format happy
Browse files Browse the repository at this point in the history
Signed-off-by: Madelyn Olson <[email protected]>
  • Loading branch information
madolson committed Jun 8, 2024
1 parent 950f1d0 commit 4628faa
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/dict.c
Original file line number Diff line number Diff line change
Expand Up @@ -955,7 +955,7 @@ void dictInitIterator(dictIterator *iter, dict *d) {
}

/* Initialize a safe iterator, which is allowed to modify the dictionary while iterating.
* You must call dictResetIterator when you are done with a safe iterator. */
* You must call dictResetIterator when you are doneg with a safe iterator. */
void dictInitSafeIterator(dictIterator *iter, dict *d) {
dictInitIterator(iter, d);
iter->safe = 1;
Expand All @@ -966,8 +966,7 @@ void dictResetIterator(dictIterator *iter) {
if (iter->safe) {
dictResumeRehashing(iter->d);
assert(iter->d->pauserehash >= 0);
}
else
} else
assert(iter->fingerprint == dictFingerprint(iter->d));
}
}
Expand Down

0 comments on commit 4628faa

Please sign in to comment.