mirror of
https://github.com/mikefarah/yq.git
synced 2024-12-19 20:19:04 +00:00
fix linter error
This commit is contained in:
parent
5de2bea1b4
commit
7a28531f2f
4
yq.go
4
yq.go
@ -48,7 +48,7 @@ func MoveFile(sourcePath, destPath string) error {
|
||||
if err != nil {
|
||||
err = inputFile.Close()
|
||||
if err != nil {
|
||||
return fmt.Errorf("Failed close original file: %s", err)
|
||||
return fmt.Errorf("failed close original file: %s", err)
|
||||
}
|
||||
return fmt.Errorf("couldn't open dest file: %s", err)
|
||||
}
|
||||
@ -56,7 +56,7 @@ func MoveFile(sourcePath, destPath string) error {
|
||||
_, err = io.Copy(outputFile, inputFile)
|
||||
err = inputFile.Close()
|
||||
if err != nil {
|
||||
return fmt.Errorf("Failed close original file: %s", err)
|
||||
return fmt.Errorf("failed close original file: %s", err)
|
||||
}
|
||||
if err != nil {
|
||||
return fmt.Errorf("writing to output file failed: %s", err)
|
||||
|
Loading…
Reference in New Issue
Block a user