Skip to content

Commit

Permalink
Merge pull request moby#31858 from unclejack/remove_redundant_options…
Browse files Browse the repository at this point in the history
…_check

pkg/archive/diff.go: avoid redundant options init
  • Loading branch information
unclejack authored Mar 16, 2017
2 parents 52143ae + 5957dc4 commit 23750ce
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions pkg/archive/diff.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 23750ce

Please sign in to comment.