diff --git a/cmd/zclfmt/main.go b/cmd/zclfmt/main.go index 05f5f54..fdaebba 100644 --- a/cmd/zclfmt/main.go +++ b/cmd/zclfmt/main.go @@ -123,8 +123,8 @@ func processFile(fn string, in *os.File) error { diagWr.WriteDiagnostics(diags) if diags.HasErrors() { checkErrs = true + return nil } - return nil } outSrc := zclwrite.Format(inSrc)