Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
fushar committed Dec 3, 2024
1 parent 74017bd commit 595ef86
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions include/tcframe/validator/core.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ struct VectorElementValidator {
}

bool satisfies(function<bool(T)> predicate) {
for(T v: val) {
if(!predicate(v)) {
for (T v : val) {
if (!predicate(v)) {
return false;
}
}
Expand Down Expand Up @@ -163,8 +163,8 @@ struct MatrixElementValidator {
}

bool satisfies(function<bool(T)> predicate) {
for(const vector<T>& v : val) {
if(!eachElementOf(v).satisfies(predicate)) {
for (const vector<T>& v : val) {
if (!eachElementOf(v).satisfies(predicate)) {
return false;
}
}
Expand Down

0 comments on commit 595ef86

Please sign in to comment.