1
0
mirror of https://github.com/mgechev/revive.git synced 2025-11-23 22:04:49 +02:00

Fix linter warnings (recommended config) in the code (#71)

This commit is contained in:
SalvadorC
2018-09-23 00:27:22 +02:00
committed by Minko Gechev
parent bd4139713d
commit 388baa3eeb
38 changed files with 55 additions and 52 deletions

View File

@@ -124,7 +124,7 @@ func (w lintModifiesValRecRule) skipType(t ast.Expr) bool {
return strings.HasPrefix(rtName, "[]") || strings.HasPrefix(rtName, "map[")
}
func (_ lintModifiesValRecRule) getNameFromExpr(ie ast.Expr) string {
func (lintModifiesValRecRule) getNameFromExpr(ie ast.Expr) string {
ident, ok := ie.(*ast.Ident)
if !ok {
return ""