소스 검색

Merge pull request #31858 from unclejack/remove_redundant_options_check

pkg/archive/diff.go: avoid redundant options init
unclejack 8 년 전
부모
커밋
23750ce535
1개의 변경된 파일0개의 추가작업 그리고 3개의 파일을 삭제
  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()