golint: Fix nested else statement
This commit is contained in:
@@ -630,7 +630,6 @@ func (g *Graph) BackPoke(v *Vertex) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Process is the primary function to execute for a particular vertex in the graph.
|
// Process is the primary function to execute for a particular vertex in the graph.
|
||||||
// XXX: rename this function
|
|
||||||
func (g *Graph) Process(v *Vertex) error {
|
func (g *Graph) Process(v *Vertex) error {
|
||||||
obj := v.Res
|
obj := v.Res
|
||||||
if global.DEBUG {
|
if global.DEBUG {
|
||||||
@@ -679,10 +678,9 @@ func (g *Graph) Process(v *Vertex) error {
|
|||||||
}
|
}
|
||||||
// poke at our pre-req's instead since they need to refresh/run...
|
// poke at our pre-req's instead since they need to refresh/run...
|
||||||
return err
|
return err
|
||||||
} else {
|
|
||||||
// only poke at the pre-req's that need to run
|
|
||||||
go g.BackPoke(v)
|
|
||||||
}
|
}
|
||||||
|
// else... only poke at the pre-req's that need to run
|
||||||
|
go g.BackPoke(v)
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user