all: Fix nested if with else if (#8467)
Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
This commit is contained in:
co-authored by
deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
parent
dde275c6cc
commit
f2be9d1166
@@ -289,10 +289,8 @@ func (m *Matcher) Match(file string) (result Result) {
|
||||
if pattern.match.Match(lowercaseFile) {
|
||||
return pattern.result
|
||||
}
|
||||
} else {
|
||||
if pattern.match.Match(file) {
|
||||
return pattern.result
|
||||
}
|
||||
} else if pattern.match.Match(file) {
|
||||
return pattern.result
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user