Removed unnecessary parameter
This commit is contained in:
parent
693ef7e9c3
commit
28292a64e3
2 changed files with 2 additions and 4 deletions
|
@ -86,7 +86,7 @@ func scanFunctionSignature(file *fs.File, tokens token.List, i int, delimiter to
|
|||
}
|
||||
|
||||
name := tokens[nameStart].Text(file.Bytes)
|
||||
function := core.NewFunction(file.Package, name, file, nil)
|
||||
function := core.NewFunction(file.Package, name, file)
|
||||
|
||||
if typeStart != -1 {
|
||||
if tokens[typeStart].Kind == token.GroupStart && tokens[typeEnd-1].Kind == token.GroupEnd {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue