Skip to content

Commit 90717b0

Browse files
authored
Merge pull request gabrielkim13#1 from tonuonu/standardize-and
Standardize AND and OR
2 parents d673a84 + cc969dd commit 90717b0

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

src/operations/logic/and.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,6 @@ namespace json_logic
1212
{
1313
json JsonLogic::operation_logic_and(const json& values, const json& data)
1414
{
15-
if (values.size() < 2)
16-
throw JsonLogicException(
17-
__FUNCTION__,
18-
"Expected 2 or more arguments, but received " + std::to_string(values.size())
19-
);
20-
2115
return std::all_of(
2216
values.begin(),
2317
values.end(),

src/operations/logic/or.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,6 @@ namespace json_logic
1010
{
1111
json JsonLogic::operation_logic_or(const json& values, const json& data)
1212
{
13-
if (values.size() < 2)
14-
throw JsonLogicException(
15-
__FUNCTION__,
16-
"Expected 2 or more arguments, but received " + std::to_string(values.size())
17-
);
18-
1913
return std::any_of(
2014
values.begin(),
2115
values.end(),

0 commit comments

Comments
 (0)