From f09db490f07972071e33abd8b4ec49d108e2f5b7 Mon Sep 17 00:00:00 2001 From: James Shubin Date: Tue, 27 Sep 2016 13:33:58 -0400 Subject: [PATCH] golint: Fix nested else statement --- pgraph/pgraph.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pgraph/pgraph.go b/pgraph/pgraph.go index 4203a0e1..3c0aa131 100644 --- a/pgraph/pgraph.go +++ b/pgraph/pgraph.go @@ -630,7 +630,6 @@ func (g *Graph) BackPoke(v *Vertex) { } // 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 { obj := v.Res 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... 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 }