From a9ade5a832951f900d976d0e35391b94c4b853f2 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 fec2151..f3032e7 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()