mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 12:21:58 +00:00
fix(cli): should return semantic errors
This commit is contained in:
parent
37ad6f3a15
commit
5b2474600f
1 changed files with 1 additions and 1 deletions
|
|
@ -145,7 +145,7 @@ impl Cli {
|
|||
let semantic_ret = SemanticBuilder::new(source_type).build(program, trivias);
|
||||
|
||||
if !semantic_ret.errors.is_empty() {
|
||||
return Some(Self::wrap_diagnostics(path, &source_text, ret.errors));
|
||||
return Some(Self::wrap_diagnostics(path, &source_text, semantic_ret.errors));
|
||||
};
|
||||
|
||||
let result = Linter::new().run(&Rc::new(semantic_ret.semantic), &source_text, fix);
|
||||
|
|
|
|||
Loading…
Reference in a new issue