Skip to content

Commit eb1536e

Browse files
committed
Fix gofmt missing case
1 parent 081d644 commit eb1536e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

v2/generator/execute.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ func gofmtWrapper(src []byte) ([]byte, error) {
141141

142142
if _, err := exec.LookPath(gofmt); err != nil {
143143
klog.Errorf("WARNING: skipping output simplification: %v", err)
144-
return nil, nil
144+
return src, nil
145145
}
146146

147147
cmd := exec.Command(gofmt, "-s")

0 commit comments

Comments
 (0)