Skip to content

Commit a14a292

Browse files
committed
Support function literals for multi-func
1 parent b0ba492 commit a14a292

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

main.go

+4
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,10 @@ func (v *visitor) Visit(node ast.Node) ast.Visitor {
6464
checkMultiLine(v, stmt.Body, stmt.Cond)
6565
}
6666

67+
if stmt, ok := node.(*ast.FuncLit); ok && v.settings.MultiFunc {
68+
checkMultiLine(v, stmt.Body, stmt.Type)
69+
}
70+
6771
if stmt, ok := node.(*ast.FuncDecl); ok && v.settings.MultiFunc {
6872
checkMultiLine(v, stmt.Body, stmt.Type)
6973
}

0 commit comments

Comments
 (0)