Update internal/third_party/dep/fs/fs.go

Co-authored-by: George Jenkins <gvjenkins@gmail.com>
Signed-off-by: Justen Stall <39888103+justenstall@users.noreply.github.com>
pull/13460/head
Justen Stall 10 months ago committed by GitHub
parent cff32ff736
commit 8549a257d9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -83,8 +83,8 @@ func renameByCopy(src, dst string) error {
return fmt.Errorf("rename fallback failed: cannot rename %s to %s: %w", src, dst, cerr) return fmt.Errorf("rename fallback failed: cannot rename %s to %s: %w", src, dst, cerr)
} }
if cerr = os.RemoveAll(src); cerr != nil { if err := os.RemoveAll(src); err != nil {
return fmt.Errorf("cannot delete %s: %w", src, cerr) return fmt.Errorf("cannot delete %s: %w", src, err)
} }
return nil return nil

Loading…
Cancel
Save