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:
deepsource-autofix[bot]
2022-07-28 19:14:22 +02:00
committed by GitHub
co-authored by deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
parent dde275c6cc
commit f2be9d1166
2 changed files with 6 additions and 12 deletions
+2 -4
View File
@@ -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
}
}