Skip to content

Commit

Permalink
feat(lura-js): make transform_top_level continue
Browse files Browse the repository at this point in the history
  • Loading branch information
aripiprazole committed Nov 13, 2023
1 parent a3e3021 commit 85b6d40
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lura-js/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@ pub fn dump_into_string<W: std::io::Write>(
) -> eyre::Result<()> {
let mut writer = resw::Writer::new(w);
for top_level in source.contents(db) {
let program_part = transform_top_level(db, *top_level)?;
let Ok(program_part) = transform_top_level(db, *top_level) else {
continue;
};

writer.write_part(&program_part)?;
}
Expand Down

0 comments on commit 85b6d40

Please sign in to comment.