Skip to content

Commit

Permalink
optimize
Browse files Browse the repository at this point in the history
  • Loading branch information
KanShiori committed Aug 18, 2023
1 parent aa507f8 commit 0dd5b49
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pkg/utils/ioutil.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,8 @@ func Tar(writer io.Writer, from string) error {
return err
}

fm := info.Mode()

link := ""
if fm&fs.ModeSymlink != 0 {
if info.Mode()&fs.ModeSymlink != 0 {
link, err = os.Readlink(path)
if err != nil {
return err
Expand Down

0 comments on commit 0dd5b49

Please sign in to comment.