style: tidying

This commit is contained in:
Amaan Qureshi 2024-02-17 19:34:55 -05:00
parent d95fcc83b9
commit fd91404ab0
7 changed files with 15 additions and 16 deletions

View file

@ -308,7 +308,8 @@ pub fn parse_file_at_path(parser: &mut Parser, opts: &ParseFileOptions) -> Resul
if node.is_error() || node.is_missing() {
first_error = Some(node);
break;
} else if !cursor.goto_first_child() {
}
if !cursor.goto_first_child() {
break;
}
} else if !cursor.goto_next_sibling() {
@ -355,7 +356,9 @@ pub fn parse_file_at_path(parser: &mut Parser, opts: &ParseFileOptions) -> Resul
bytes: source_code.len(),
duration: Some(duration),
});
} else if opts.print_time {
}
if opts.print_time {
let duration = time.elapsed();
let duration_ms = duration.as_micros() as f64 / 1e3;
writeln!(