pkg/archive: remove unnecessary Archive and Reader type

The `archive` package defines aliases for `io.ReadCloser` and
`io.Reader`. These don't seem to provide an benefit other than type
decoration. Per this change, several unnecessary type cases were
removed.

Signed-off-by: Stephen J Day <stephen.day@docker.com>
Upstream-commit: aa2cc18745cbe0231c33782f0fa764f657e3fb88
Component: engine
This commit is contained in:
Stephen J Day
2016-10-20 16:40:59 -07:00
parent 2f7fc91dd4
commit fe1dce6a91
23 changed files with 75 additions and 60 deletions

View File

@ -287,7 +287,7 @@ func (s *DockerExternalGraphdriverSuite) setUpPlugin(c *check.C, name string, ex
mux.HandleFunc("/GraphDriver.ApplyDiff", func(w http.ResponseWriter, r *http.Request) {
s.ec[ext].applydiff++
var diff archive.Reader = r.Body
var diff io.Reader = r.Body
defer r.Body.Close()
id := r.URL.Query().Get("id")