Skip to content

Commit

Permalink
analyzer: drop always true statement (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
orsinium authored Oct 23, 2020
1 parent c782f51 commit f9938c3
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions analyzer/analyzer.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,6 @@ func readRules() (*parseRulesResult, error) {

switch {
case flagRules != "":
if flagRules == "" {
return nil, fmt.Errorf("-rules values is empty")
}
filenames := strings.Split(flagRules, ",")
var ruleSets []*ruleguard.GoRuleSet
for _, filename := range filenames {
Expand Down

0 comments on commit f9938c3

Please sign in to comment.