Skip to content

Commit 320dfb8

Browse files
[autofix.ci] apply automated fixes
1 parent 0af44c0 commit 320dfb8

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

tasks/ast_tools/src/generators/typescript.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -480,11 +480,7 @@ fn amend_oxlint_types(code: &str) -> String {
480480
let mut code = SPAN_REGEX.replace(code, SpanReplacer).into_owned();
481481

482482
// Replace `hashbang` field with `comments` and `tokens` fields in `Program`
483-
code = code.replacen(
484-
"hashbang: Hashbang | null;",
485-
"comments: Comment[]; tokens: Token[];",
486-
1,
487-
);
483+
code = code.replacen("hashbang: Hashbang | null;", "comments: Comment[]; tokens: Token[];", 1);
488484

489485
// Make `parent` fields non-optional
490486
#[expect(clippy::disallowed_methods)]

0 commit comments

Comments
 (0)