Merge pull request #31858 from unclejack/remove_redundant_options_check

pkg/archive/diff.go: avoid redundant options init
Upstream-commit: 23750ce5351669934bdbe85f010d6fea60820797
Component: engine
This commit is contained in:
unclejack
2017-03-16 05:05:03 -07:00
committed by GitHub

View File

@ -41,9 +41,6 @@ func UnpackLayer(dest string, layer io.Reader, options *TarOptions) (size int64,
aufsTempdir := ""
aufsHardlinks := make(map[string]*tar.Header)
if options == nil {
options = &TarOptions{}
}
// Iterate through the files in the archive.
for {
hdr, err := tr.Next()