From e61e6858339d68eb388780bd9c1663bd2b708d29 Mon Sep 17 00:00:00 2001 From: Stephen Whitmore Date: Tue, 12 Apr 2016 13:32:16 -0700 Subject: [PATCH] redundency-be-gone License: MIT Signed-off-by: Stephen Whitmore --- core/coreunix/add.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/core/coreunix/add.go b/core/coreunix/add.go index 215e7c2ca..2560394fe 100644 --- a/core/coreunix/add.go +++ b/core/coreunix/add.go @@ -207,11 +207,7 @@ func (adder *Adder) Finalize() (*dag.Node, error) { return nil, err } - rootNode, err = root.GetNode() - if err != nil { - return nil, err - } - return rootNode, nil + return root.GetNode() } func (adder *Adder) outputDirs(path string, fs mfs.FSNode) error {