From 4917adee4d95188c3f899afd928d548da08bd01d Mon Sep 17 00:00:00 2001 From: Cthulhu Date: Fri, 26 Aug 2022 06:23:28 +0300 Subject: [PATCH] Codestyle --- archive/tar/tar.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/archive/tar/tar.go b/archive/tar/tar.go index 59b72210..9938aec4 100644 --- a/archive/tar/tar.go +++ b/archive/tar/tar.go @@ -72,7 +72,6 @@ func writeToArchive(tw *tar.Writer, root string, skipSymlinks bool, written *int if err != nil { return fmt.Errorf("create header for <%s>, %w", path, err) } - h.Format = tar.FormatPAX if fi.Mode()&os.ModeSymlink != 0 { // isSymbolic if skipSymlinks { @@ -91,6 +90,7 @@ func writeToArchive(tw *tar.Writer, root string, skipSymlinks bool, written *int } h.Name = name + h.Format = tar.FormatPAX if err := tw.WriteHeader(h); err != nil { return fmt.Errorf("write header for <%s>, %w", path, err)