fix linter error

This commit is contained in:
Aleksandr Sergin 2019-08-23 20:11:44 +03:00 committed by Mike Farah
parent a9c0ef571c
commit 5acc1e661e

2
yq.go
View File

@ -40,7 +40,7 @@ func main() {
//MoveFile - os.Rename() give error "invalid cross-device link" for Docker container with Volumes.
//MoveFile(source, destination) will work moving file between folders
func MoveFile(sourcePath, destPath string) error {
inputFile, err := os.Open(sourcePath)
inputFile, err := os.Open(sourcePath) // nolint gosec
if err != nil {
return fmt.Errorf("couldn't open source file: %s", err)
}