simplify return
This commit is contained in:
parent
25ee6a19a6
commit
8ee8420408
|
@ -70,8 +70,7 @@ func (f *HCL2Formatter) Format(path string) (int, hcl.Diagnostics) {
|
|||
}
|
||||
|
||||
if path == "-" {
|
||||
bytesModified, diags = f.formatFile(path, diags, bytesModified)
|
||||
return bytesModified, diags
|
||||
return f.formatFile(path, diags, bytesModified)
|
||||
}
|
||||
|
||||
isDir, err := isDir(path)
|
||||
|
|
Loading…
Reference in New Issue