Merge pull request #220 from Quasilyte/quasilyte/sloppyLen

replace len(x)<=0 with len(x)==0
This commit is contained in:
Cosmin Cojocar 2018-07-30 08:43:44 +02:00 committed by GitHub
commit 7d767b4b66
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -262,7 +262,7 @@ func main() {
// Load enabled rule definitions // Load enabled rule definitions
ruleDefinitions := loadRules(*flagRulesInclude, *flagRulesExclude) ruleDefinitions := loadRules(*flagRulesInclude, *flagRulesExclude)
if len(ruleDefinitions) <= 0 { if len(ruleDefinitions) == 0 {
logger.Fatal("cannot continue: no rules are configured.") logger.Fatal("cannot continue: no rules are configured.")
} }