Skip to content

Commit

Permalink
refactor(test): remove unused lambda capture
Browse files Browse the repository at this point in the history
  • Loading branch information
alandefreitas committed Nov 5, 2024
1 parent 59b3012 commit 70bff87
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/test/lib/Dom/LazyObject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,7 @@ struct LazyObject_test
obj.set("x", 789);
std::size_t count = 0;
bool found = false;
bool match = true;
obj.visit([&count, &match, &found](String key, Value value) {
obj.visit([&count, &found](String key, Value value) {
if (key == "x" && value == 789)
found = true;
++count;
Expand Down

0 comments on commit 70bff87

Please sign in to comment.