From 5957dc489958384c6fc8c997590967922ab9aefa Mon Sep 17 00:00:00 2001 From: unclejack Date: Wed, 15 Mar 2017 18:03:33 +0200 Subject: [PATCH] pkg/archive/diff.go: avoid redundant options init Signed-off-by: Cristian Staretu --- pkg/archive/diff.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/pkg/archive/diff.go b/pkg/archive/diff.go index 9e1a58c499..2292193942 100644 --- a/pkg/archive/diff.go +++ b/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()