Browse Source

Merge pull request #31858 from unclejack/remove_redundant_options_check

pkg/archive/diff.go: avoid redundant options init
unclejack 8 năm trước cách đây
mục cha
commit
23750ce535
1 tập tin đã thay đổi với 0 bổ sung3 xóa
  1. 0 3
      pkg/archive/diff.go

+ 0 - 3
pkg/archive/diff.go

@@ -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()