Skip to content

Commit

Permalink
Drop unnecessary else and just return
Browse files Browse the repository at this point in the history
  • Loading branch information
bittersweet committed Oct 27, 2015
1 parent 9db6f41 commit d001638
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions rules.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,9 @@ func metString(r *rule, parsed map[string]interface{}) bool {
if str == neededVal {
// We need not equal and string is equal
return false
} else {
// We need not equal and string is not equal
return true
}
// We need not equal and string is not equal
return true
}

if str != neededVal {
Expand Down

0 comments on commit d001638

Please sign in to comment.