Skip to content

Commit 81aa462

Browse files
authored
fix: compact output (#143)
1 parent dad3b26 commit 81aa462

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/main.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,9 +154,7 @@ fn main() -> Result<()> {
154154
HashMap::default()
155155
};
156156
for file_diags in diagnostics {
157-
let Some(source) = contents.remove(&file_diags.document_id) else {
158-
continue;
159-
};
157+
let source = contents.remove(&file_diags.document_id).unwrap_or_default();
160158
print_reports(
161159
&mut output_file,
162160
&cwd,

0 commit comments

Comments
 (0)