diff --git a/internal/fileutils/cp.go b/internal/fileutils/cp.go index 7937530..5ff32bf 100644 --- a/internal/fileutils/cp.go +++ b/internal/fileutils/cp.go @@ -123,7 +123,7 @@ func copyFileContents(src, dst string) error { }() // Copy the contents of the source file into the destination files - size := 1024 * 1024 + const size = 1024 * 1024 buf := make([]byte, size) if _, err = io.CopyBuffer(dstFile, srcFile, buf); err != nil { return err