Skip to content

Commit bd24649

Browse files
authored
Merge pull request #104 from devopsdays/refactor-packages
Remove update line in copy file
2 parents 9ae0c70 + c3c4910 commit bd24649

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)