Skip to content

Commit 5df23e6

Browse files
committed
format
1 parent 4bc08ca commit 5df23e6

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

crates/oxc_linter/src/rules/eslint/no_multi_str.rs

+2-4
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,8 @@ impl Rule for NoMultiStr {
3636
if let AstKind::StringLiteral(literal) = node.kind() {
3737
let source = literal.span.source_text(ctx.source_text());
3838
// https://github.com/eslint/eslint/blob/9e6d6405c3ee774c2e716a3453ede9696ced1be7/lib/shared/ast-utils.js#L12
39-
let position = source
40-
.find(|ch|
41-
matches!(ch, '\r' | '\n' | '\u{2028}' | '\u{2029}')
42-
).unwrap_or(0);
39+
let position =
40+
source.find(|ch| matches!(ch, '\r' | '\n' | '\u{2028}' | '\u{2029}')).unwrap_or(0);
4341
if position != 0 {
4442
// We found the "newline" character but want to highlight the '\', so go back one
4543
// character.

0 commit comments

Comments
 (0)