mirror of
https://github.com/mgechev/revive.git
synced 2025-07-05 00:28:53 +02:00
Co-authored-by: SalvadorC <salvadorcavadini+github@gmail.com>
This commit is contained in:
@ -105,6 +105,9 @@ func (w lintErrorStrings) match(expr *ast.CallExpr) bool {
|
||||
}
|
||||
// retrieve the package
|
||||
id, ok := sel.X.(*ast.Ident)
|
||||
if !ok {
|
||||
return false
|
||||
}
|
||||
functions, ok := w.errorFunctions[id.Name]
|
||||
if !ok {
|
||||
return false
|
||||
|
Reference in New Issue
Block a user