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)