dont print filename if its reading from stdin
This commit is contained in:
parent
40df74e95a
commit
2b0996daa6
|
@ -117,8 +117,10 @@ func (f *HCL2Formatter) processFile(filename string) ([]byte, error) {
|
|||
return nil, nil
|
||||
}
|
||||
|
||||
if filename != "-" {
|
||||
s := []byte(fmt.Sprintf("%s\n", filename))
|
||||
_, _ = f.Output.Write(s)
|
||||
}
|
||||
|
||||
if f.Write {
|
||||
if filename == "-" {
|
||||
|
|
Loading…
Reference in New Issue