Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
cpanato committed Jun 14, 2019
1 parent 05bb247 commit d3bc0b1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions internal/tools/utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"os"
)

// CopyDirectory copy the entire directory to another destination
func CopyDirectory(source string, dest string) error {
sourceinfo, err := os.Stat(source)
if err != nil {
Expand Down Expand Up @@ -33,7 +34,7 @@ func CopyDirectory(source string, dest string) error {
fmt.Println(err)
}
} else {
err = CopyFile(sourcefilepointer, destinationfilepointer)
err = copyFile(sourcefilepointer, destinationfilepointer)
if err != nil {
fmt.Println(err)
}
Expand All @@ -43,7 +44,7 @@ func CopyDirectory(source string, dest string) error {
return nil
}

func CopyFile(source string, dest string) error {
func copyFile(source string, dest string) error {
sourcefile, err := os.Open(source)
if err != nil {
return err
Expand Down

0 comments on commit d3bc0b1

Please sign in to comment.