vfmt: only print non-empty diffs (#9803)
parent
70c651ff17
commit
4b230d16b3
|
@ -210,7 +210,10 @@ fn (foptions &FormatOptions) post_process_file(file string, formatted_file_path
|
||||||
if foptions.is_verbose {
|
if foptions.is_verbose {
|
||||||
eprintln('Using diff command: $diff_cmd')
|
eprintln('Using diff command: $diff_cmd')
|
||||||
}
|
}
|
||||||
println(util.color_compare_files(diff_cmd, file, formatted_file_path))
|
diff := util.color_compare_files(diff_cmd, file, formatted_file_path)
|
||||||
|
if diff.len > 0 {
|
||||||
|
println(diff)
|
||||||
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if foptions.is_verify {
|
if foptions.is_verify {
|
||||||
|
|
Loading…
Reference in New Issue