mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-29 12:44:22 +01:00
handle goimports/go vet warnings
This commit is contained in:
1 parent
57d2d345b6
commit
8b70e7fc2f
12 files changed
+178
-127
No files matched your search
+2
-8
@@ -22,15 +22,9 @@ func (a *Allowlist) CommitAllowed(c string) bool {
|
||||
}
|
||||
|
||||
func (a *Allowlist) PathAllowed(path string) bool {
|
||||
if anyRegexMatch(path, a.Paths) {
|
||||
return true
|
||||
}
|
||||
return false
|
||||
return anyRegexMatch(path, a.Paths)
|
||||
}
|
||||
|
||||
func (a *Allowlist) RegexAllowed(s string) bool {
|
||||
if anyRegexMatch(s, a.Regexes) {
|
||||
return true
|
||||
}
|
||||
return false
|
||||
return anyRegexMatch(s, a.Regexes)
|
||||
}
|
||||
Reference in new issue
Block a user