Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.

Commit

Permalink
Fix file id
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaReiser committed Sep 16, 2022
1 parent cff8fa7 commit e1b3883
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/rome_js_formatter/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -810,7 +810,7 @@ function() {
}"#
);

let tree = parse_script(input, 0);
let tree = parse_script(input, FileId::zero());
let result = format_range(
JsFormatOptions::new(SourceType::js_script()).with_indent_style(IndentStyle::Space(4)),
&tree.syntax(),
Expand Down

0 comments on commit e1b3883

Please sign in to comment.