mirror of
https://github.com/kevin-DL/revel-cmd.git
synced 2026-01-11 18:54:31 +00:00
Merge pull request #120 from lokhman/issue119
Fix DefaultValidationKeys generated with wrong line for multiline check
This commit is contained in:
@@ -598,7 +598,7 @@ func getValidationKeys(fset *token.FileSet, funcDecl *ast.FuncDecl, imports map[
|
|||||||
}
|
}
|
||||||
|
|
||||||
if typeExpr := NewTypeExpr("", key); typeExpr.Valid {
|
if typeExpr := NewTypeExpr("", key); typeExpr.Valid {
|
||||||
lineKeys[fset.Position(callExpr.End()).Line] = typeExpr.TypeName("")
|
lineKeys[fset.Position(callExpr.Pos()).Line] = typeExpr.TypeName("")
|
||||||
}
|
}
|
||||||
return true
|
return true
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user