From 40df74e95afca30ba0aa8dbfa50cfd9fdad05d88 Mon Sep 17 00:00:00 2001 From: Megan Marsh Date: Tue, 19 Jan 2021 15:34:18 -0800 Subject: [PATCH] linting --- hcl2template/formatter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hcl2template/formatter.go b/hcl2template/formatter.go index e83974a15..6a3db089b 100644 --- a/hcl2template/formatter.go +++ b/hcl2template/formatter.go @@ -122,7 +122,7 @@ func (f *HCL2Formatter) processFile(filename string) ([]byte, error) { if f.Write { if filename == "-" { - f.Output.Write(outSrc) + _, _ = f.Output.Write(outSrc) } else { if err := ioutil.WriteFile(filename, outSrc, 0644); err != nil { return nil, err