Fix golint warnings

This commit is contained in:
Marc Vertes
2018-12-07 17:37:58 +01:00
parent ea07c12f56
commit 6a397e2294
6 changed files with 23 additions and 17 deletions

View File

@@ -9,6 +9,7 @@ import (
// Builtin type defines functions which run at CFG execution
type Builtin func(f *Frame) Builtin
// BuiltinGenerator type defines a builtin generator function
type BuiltinGenerator func(n *Node)
var builtin = [...]BuiltinGenerator{
@@ -418,9 +419,8 @@ func call(n *Node) {
if goroutine {
go runCfg(def.child[3].start, &nf)
return tnext
} else {
runCfg(def.child[3].start, &nf)
}
runCfg(def.child[3].start, &nf)
// Handle branching according to boolean result
if fnext != nil {