mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
daemon/graphdriver/copy: rm dead code
Here, err is never non-nil as it was checked earlier. Fixes the following linter warning: > daemon/graphdriver/copy/copy.go:136:10: nilness: impossible condition: nil != nil (govet) > if err != nil { > ^ Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This commit is contained in:
parent
58ac4bd938
commit
365a63a573
1 changed files with 0 additions and 3 deletions
|
@ -133,9 +133,6 @@ func DirCopy(srcDir, dstDir string, copyMode Mode, copyXattrs bool) error {
|
|||
}
|
||||
|
||||
dstPath := filepath.Join(dstDir, relPath)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
stat, ok := f.Sys().(*syscall.Stat_t)
|
||||
if !ok {
|
||||
|
|
Loading…
Reference in a new issue