Skip to content

Commit abae2e0

Browse files
committed
fixup! Specify return value where name return value is used
1 parent f4d3409 commit abae2e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/commands/oscommands/copy.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)