Skip to content

Commit

Permalink
Remove expect
Browse files Browse the repository at this point in the history
  • Loading branch information
jackTabsCode committed Apr 26, 2024
1 parent 90af12e commit 032aef5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/codegen/nested/ast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ impl AstFormat for ReturnStatement {
AstTarget::Typescript { output_dir } => {
write!(output, "declare const {output_dir}: ")
}
}
.expect("Failed to write to output");
}?;

let result = self.0.fmt_ast(output);
if let AstTarget::Typescript { output_dir } = output.target {
write!(output, "\nexport = {output_dir}")?
Expand Down

0 comments on commit 032aef5

Please sign in to comment.