Skip to content

Commit

Permalink
move comment for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
SwiftEngineer committed Apr 17, 2023
1 parent 33732e4 commit 8428636
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion slug.go
Original file line number Diff line number Diff line change
Expand Up @@ -374,14 +374,14 @@ func (p *Packer) Unpack(r io.Reader, dst string) error {
return fmt.Errorf("failed to untar slug: %w", err)
}

// Get rid of absolute paths.
path := header.Name

// If the entry has no name, ignore it.
if path == "" {
continue
}

// Get rid of absolute paths.
if path[0] == '/' {
path = path[1:]
}
Expand Down

0 comments on commit 8428636

Please sign in to comment.