Skip to content

Commit

Permalink
Refactor: Remove useless if-condition
Browse files Browse the repository at this point in the history
  • Loading branch information
otiai10 committed Sep 7, 2023
1 parent a5478ea commit 3eebd94
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions copy.go
Original file line number Diff line number Diff line change
Expand Up @@ -243,10 +243,7 @@ func dcopyConcurrent(srcdir, destdir string, contents []os.FileInfo, opt Options
}
err := copyNextOrSkip(cs, cd, content, opt)
opt.intent.sem.Release(1)
if err != nil {
return err
}
return nil
return err
}
}
for _, content := range contents {
Expand Down

0 comments on commit 3eebd94

Please sign in to comment.