mirror of
https://github.com/mikefarah/yq.git
synced 2025-01-12 19:25:37 +00:00
fix linter error
This commit is contained in:
parent
a9c0ef571c
commit
5acc1e661e
2
yq.go
2
yq.go
@ -40,7 +40,7 @@ func main() {
|
|||||||
//MoveFile - os.Rename() give error "invalid cross-device link" for Docker container with Volumes.
|
//MoveFile - os.Rename() give error "invalid cross-device link" for Docker container with Volumes.
|
||||||
//MoveFile(source, destination) will work moving file between folders
|
//MoveFile(source, destination) will work moving file between folders
|
||||||
func MoveFile(sourcePath, destPath string) error {
|
func MoveFile(sourcePath, destPath string) error {
|
||||||
inputFile, err := os.Open(sourcePath)
|
inputFile, err := os.Open(sourcePath) // nolint gosec
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("couldn't open source file: %s", err)
|
return fmt.Errorf("couldn't open source file: %s", err)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user