File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ import (
3535// destination file exists, all it's contents will be replaced by the contents
3636// of the source file. The file mode will be copied from the source and
3737// the copied data is synced/flushed to stable storage.
38- func CopyFile (src , dst string ) ( err error ) {
38+ func CopyFile (src , dst string ) error {
3939 in , err := os .Open (src )
4040 if err != nil {
4141 return err
@@ -77,7 +77,7 @@ func CopyFile(src, dst string) (err error) {
7777// CopyDir recursively copies a directory tree, attempting to preserve permissions.
7878// Source directory must exist. If destination already exists we'll clobber it.
7979// Symlinks are ignored and skipped.
80- func CopyDir (src string , dst string ) ( err error ) {
80+ func CopyDir (src string , dst string ) error {
8181 src = filepath .Clean (src )
8282 dst = filepath .Clean (dst )
8383
You can’t perform that action at this time.
0 commit comments