Defaults to ORCondition when no condition is specified

dev
Manuel Bua 2020-06-30 22:23:39 +02:00
parent c8e31074a4
commit 7ad867d82c
1 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@ func Parse(file string) (*Template, error) {
// Get the condition between the matchers
condition, ok := matchers.ConditionTypes[request.MatchersCondition]
if !ok {
request.SetMatchersCondition(matchers.ANDCondition)
request.SetMatchersCondition(matchers.ORCondition)
} else {
request.SetMatchersCondition(condition)
}
@ -73,7 +73,7 @@ func Parse(file string) (*Template, error) {
// Get the condition between the matchers
condition, ok := matchers.ConditionTypes[request.MatchersCondition]
if !ok {
request.SetMatchersCondition(matchers.ANDCondition)
request.SetMatchersCondition(matchers.ORCondition)
} else {
request.SetMatchersCondition(condition)
}