diff options
author | Alex Goodman <wagoodman@users.noreply.github.com> | 2019-07-21 15:44:52 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-21 15:44:52 -0400 |
commit | 9384069d766826b2dc7fc56bcbc57d12cd2ff51e (patch) | |
tree | 767c0963758705c8dd169741aa72963cc023cf0f /runtime/ci | |
parent | 57b1a3d5228872eba6589b0ae38ceccabd0f3344 (diff) | |
parent | ea0de60dc05cdb5b3fbf75655121b92c6ab93ec2 (diff) |
Merge branch 'master' into format-fixes
Diffstat (limited to 'runtime/ci')
-rw-r--r-- | runtime/ci/evaluator.go | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/runtime/ci/evaluator.go b/runtime/ci/evaluator.go index 53251a5..8a95440 100644 --- a/runtime/ci/evaluator.go +++ b/runtime/ci/evaluator.go @@ -43,10 +43,7 @@ func (ci *Evaluator) LoadConfig(configFile string) error { func (ci *Evaluator) isRuleEnabled(rule Rule) bool { value := ci.Config.GetString(rule.Key()) - if value == "disabled" { - return false - } - return true + return value != "disabled" } func (ci *Evaluator) Evaluate(analysis *image.AnalysisResult) bool { |