From fac49695a2dda3f0900ea3c43c10265b999674c6 Mon Sep 17 00:00:00 2001 From: Thad Craft Date: Wed, 24 Oct 2018 15:04:05 -0500 Subject: [PATCH] fixing test lint --- commands_test.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/commands_test.go b/commands_test.go index fec2151d..f3032e75 100644 --- a/commands_test.go +++ b/commands_test.go @@ -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()