Skip to content

Commit a1055c5

Browse files
authored
cmd/fetch_repo: fix dropped error (#2298)
**What type of PR is this?** Bug fix **What package or component does this PR mostly affect?** /cmd/fetch_repo/ **What does this PR do? Why is it needed?** This fixes an err variable that was dropped and unhandled. **Which issues(s) does this PR fix?** Fixes #2297. Signed-off-by: Lars Lehtonen <lars.lehtonen@gmail.com>
1 parent a3e63b0 commit a1055c5

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

cmd/fetch_repo/copy_tree.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ func copyTree(destRoot, srcRoot string) error {
4343
return err
4444
}
4545
err = os.Symlink(target, dest)
46+
if err != nil {
47+
return err
48+
}
4649
case info.Mode().IsRegular():
4750
r, err := os.Open(src)
4851
if err != nil {

0 commit comments

Comments
 (0)