From 6db5f134c9885f9dcecf30c4ffba42bd182ccb58 Mon Sep 17 00:00:00 2001 From: Eyal Posener Date: Mon, 10 Sep 2018 10:50:41 +0300 Subject: fix lint issues --- cmd/install/utils.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'cmd/install/utils.go') diff --git a/cmd/install/utils.go b/cmd/install/utils.go index bb709bc..d34ac8c 100644 --- a/cmd/install/utils.go +++ b/cmd/install/utils.go @@ -115,7 +115,10 @@ func removeContentToTempFile(name, content string) (string, error) { if str == content { continue } - wf.WriteString(str + "\n") + _, err = wf.WriteString(str + "\n") + if err != nil { + return "", err + } prefix = prefix[:0] } return wf.Name(), nil -- cgit v1.2.3