From c2a5011c0d65cfd6c1ab5d6eef9778551ed56860 Mon Sep 17 00:00:00 2001 From: Valentin Rothberg Date: Tue, 8 Dec 2020 16:18:49 +0100 Subject: archive: move stat-header handling into copy package Move handling the stat header into `pkg/copy`. All copy-related should ideally be located in this package to increase locality and reduce scattering where possible. Signed-off-by: Valentin Rothberg --- pkg/copy/copy.go | 1 - 1 file changed, 1 deletion(-) (limited to 'pkg/copy/copy.go') diff --git a/pkg/copy/copy.go b/pkg/copy/copy.go index 0e68eb450..3993b532e 100644 --- a/pkg/copy/copy.go +++ b/pkg/copy/copy.go @@ -114,7 +114,6 @@ func enforceCopyRules(source, destination *CopyItem) error { return nil } - // Source is a *stream*. if source.info.IsStream { if !(destination.info.IsDir || destination.info.IsStream) { return errors.New("destination must be a directory or stream when copying from a stream") -- cgit v1.2.3-54-g00ecf