Skip to content

Commit

Permalink
simple refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenmcconkey committed Jul 26, 2022
1 parent 60ec42a commit 0e82c4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions evaluation/feature.go
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ func prereqsSatisfied(fc FeatureConfig, target *Target, flags map[string]Feature

if prereqFlag.Prerequisites != nil {
res := checkPreReqsForPreReqs(prereqFlag.Prerequisites, flags, target)
if res == false {
if !res {
return false
}
}
Expand Down Expand Up @@ -557,7 +557,7 @@ func checkPreReqsForPreReqs(preReqFlagPreReqs []Prerequisite, flags map[string]F

if len(nestedPreReq.Prerequisites) > 0 {
nested := checkPreReqsForPreReqs(nestedPreReq.Prerequisites, flags, target)
if nested == false {
if !nested {
return false
}
}
Expand Down

0 comments on commit 0e82c4f

Please sign in to comment.