mirror of
https://github.com/hashicorp/packer.git
synced 2026-10-02 04:34:00 -04:00
simplify return
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user