This commit is contained in:
Megan Marsh 2021-01-19 15:34:18 -08:00
parent 4323b49130
commit 40df74e95a
1 changed files with 1 additions and 1 deletions

View File

@ -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