Skip to content

Commit

Permalink
Codestyle
Browse files Browse the repository at this point in the history
  • Loading branch information
CthulhuDen committed Aug 26, 2022
1 parent 0991bbf commit 4917ade
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion archive/tar/tar.go
Expand Up @@ -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 {
Expand All @@ -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)
Expand Down

0 comments on commit 4917ade

Please sign in to comment.