Browse Source

Fixed: Uneeded return statement

Fixed: Using new Import.
master
Till Wegmüller 5 years ago
parent
commit
6ede249905
  1. 5
      copy.go

5
copy.go

@ -8,7 +8,7 @@ import (
"time"
"path/filepath"
"fmt"
"github.com/toasterson/glog"
"git.wegmueller.it/toasterson/glog"
)
type copyWorker struct {
@ -36,7 +36,7 @@ func ExactCopy(srcFile, destDir string) error {
}
}
srcStat := srcMode.Sys().(*syscall.Stat_t)
switch info.Mode() & os.ModeType {
switch srcMode.Mode() & os.ModeType {
case os.ModeSocket, os.ModeNamedPipe, os.ModeCharDevice, os.ModeSticky, os.ModeDevice, os.ModeDir, os.ModeExclusive:
return nil
case os.ModeSymlink:
@ -49,7 +49,6 @@ func ExactCopy(srcFile, destDir string) error {
default:
return copyFileExact(srcFile, destFile, srcStat)
}
return nil
}
func ExactCopyPath(src, dest string, entries []string) error {

Loading…
Cancel
Save