Simplified return code
This commit is contained in:
@ -97,7 +97,7 @@ func scanFunctionSignature(file *fs.File, tokens token.List, i int, delimiter to
|
||||
outputTokens := tokens[typeStart:typeEnd]
|
||||
|
||||
err := outputTokens.Split(func(tokens token.List) error {
|
||||
function.Output = append(function.Output, core.NewOutput(tokens))
|
||||
function.Output = append(function.Output, core.NewParameter(tokens))
|
||||
return nil
|
||||
})
|
||||
|
||||
@ -117,7 +117,7 @@ func scanFunctionSignature(file *fs.File, tokens token.List, i int, delimiter to
|
||||
return errors.New(errors.MissingType, file, tokens[0].End())
|
||||
}
|
||||
|
||||
function.Input = append(function.Input, core.NewInput(tokens))
|
||||
function.Input = append(function.Input, core.NewParameter(tokens))
|
||||
return nil
|
||||
})
|
||||
|
||||
|
Reference in New Issue
Block a user