From 831b7658925784a94e93907433205ba185613a37 Mon Sep 17 00:00:00 2001 From: Steven Allen Date: Fri, 22 Mar 2019 21:41:34 -0700 Subject: [PATCH] add: fix symlinks License: MIT Signed-off-by: Steven Allen --- core/coreunix/add.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/coreunix/add.go b/core/coreunix/add.go index 66cf23d32bc..abb72e58f6f 100644 --- a/core/coreunix/add.go +++ b/core/coreunix/add.go @@ -266,10 +266,10 @@ func (adder *Adder) Add(ctx context.Context, file files.Node) (ipld.Node, error) err error ) switch file := file.(type) { - case files.File: - nd, err = baseJob.addFile("", file) case *files.Symlink: nd, err = baseJob.addSymlink("", file) + case files.File: + nd, err = baseJob.addFile("", file) case files.Directory: job := newDirAdderJob(baseJob)