Skip to content

Commit c3c4910

Browse files
committed
Remove update line in copy file
Signed-off-by: Matt Stratton <matt.stratton@gmail.com>
1 parent 6b2fc08 commit c3c4910

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

helpers/copy_file.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ func CopyFile(srcPath, destPath string) (err error) {
2121
defer w.Close()
2222

2323
// do the actual work
24-
n, err := io.Copy(w, r) // <------ here !
24+
_, err = io.Copy(w, r) // <------ here !
2525
if err != nil {
2626
return err
2727
}

0 commit comments

Comments
 (0)