chore: apply some linter recommendations.
This commit is contained in:
parent
3b6b50cf63
commit
984cf28e61
37 changed files with 125 additions and 126 deletions
|
|
@ -72,10 +72,10 @@ func newAbi(q Qualifier, rule rule) (Rule, error) {
|
|||
}
|
||||
|
||||
path := rule.Get(0)
|
||||
switch {
|
||||
case path[0] == '"':
|
||||
switch path[0] {
|
||||
case '"':
|
||||
magic = false
|
||||
case path[0] == '<':
|
||||
case '<':
|
||||
magic = true
|
||||
default:
|
||||
return nil, fmt.Errorf("invalid path %s in rule: %s", path, rule)
|
||||
|
|
@ -198,10 +198,10 @@ func newInclude(rule rule) (Rule, error) {
|
|||
}
|
||||
|
||||
path := r[0]
|
||||
switch {
|
||||
case path[0] == '"':
|
||||
switch path[0] {
|
||||
case '"':
|
||||
magic = false
|
||||
case path[0] == '<':
|
||||
case '<':
|
||||
magic = true
|
||||
default:
|
||||
return nil, fmt.Errorf("invalid path format: %v", path)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue