fixing test lint

This commit is contained in:
Thad Craft 2018-10-24 15:04:05 -05:00 committed by Mike Farah
parent 8d6e3a6a75
commit a9ade5a832

View File

@ -847,7 +847,10 @@ c:
func TestMergeCmd_Inplace(t *testing.T) {
filename := writeTempYamlFile(readTempYamlFile("examples/data1.yaml"))
os.Chmod(filename, os.FileMode(int(0666)))
err := os.Chmod(filename, os.FileMode(int(0666)))
if err != nil {
t.Error(err)
}
defer removeTempYamlFile(filename)
cmd := getRootCommand()