mirror of
https://github.com/mikefarah/yq.git
synced 2024-11-12 05:38:04 +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(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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user