From f227bef562f66b561747630723a95ee6fff58217 Mon Sep 17 00:00:00 2001 From: Ashar Fuadi Date: Mon, 2 Dec 2024 21:16:31 +0700 Subject: [PATCH] Apply suggestions from code review --- include/tcframe/validator/core.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/tcframe/validator/core.hpp b/include/tcframe/validator/core.hpp index 1875fcb..640c452 100644 --- a/include/tcframe/validator/core.hpp +++ b/include/tcframe/validator/core.hpp @@ -53,8 +53,8 @@ struct VectorElementValidator { } bool satisfies(function predicate) { - for(T v: val) { - if(!predicate(v)) { + for (T v : val) { + if (!predicate(v)) { return false; } } @@ -163,8 +163,8 @@ struct MatrixElementValidator { } bool satisfies(function predicate) { - for(const vector& v : val) { - if(!eachElementOf(v).satisfies(predicate)) { + for (const vector& v : val) { + if (!eachElementOf(v).satisfies(predicate)) { return false; } }