Skip to content

Commit

Permalink
fix loader_test
Browse files Browse the repository at this point in the history
  • Loading branch information
kataras committed Mar 15, 2023
1 parent ad52fba commit 2b01db8
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions loader_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,17 +163,9 @@ func copyDir(src, dest string) error {
}
}

var v os.FileInfo
v.Mode()

info, err := entry.Info()
if err != nil {
return err
}

isSymlink := info.Mode()&os.ModeSymlink != 0
isSymlink := fileInfo.Mode()&os.ModeSymlink != 0
if !isSymlink {
if err := os.Chmod(destPath, info.Mode()); err != nil {
if err := os.Chmod(destPath, fileInfo.Mode()); err != nil {
return err
}
}
Expand Down

0 comments on commit 2b01db8

Please sign in to comment.