From aacffe5fb2870f686f5bf620c13fc63ff4552f2d Mon Sep 17 00:00:00 2001 From: Brice Rising Date: Mon, 10 Dec 2018 14:58:54 -0500 Subject: [PATCH] Remove dead code Unused var was in fs.go. Removed it. Signed-off-by: Brice Rising --- pkg/fsutil/fs.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/pkg/fsutil/fs.go b/pkg/fsutil/fs.go index 82b7d4e76..bee8a6cd7 100644 --- a/pkg/fsutil/fs.go +++ b/pkg/fsutil/fs.go @@ -55,8 +55,6 @@ func renameByCopy(src, dst string) error { return errors.Wrapf(os.RemoveAll(src), "cannot delete %s", src) } -var errPathNotDir = errors.New("given path is not a directory") - var ( errSrcNotDir = errors.New("source is not a directory") errDstExist = errors.New("destination already exists")