Skip to content

Commit 7a4dd74

Browse files
committed
clippy
1 parent adaab47 commit 7a4dd74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/oxc_linter/src/rules/typescript/no_extraneous_class.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ impl Rule for NoExtraneousClass {
116116
{
117117
return;
118118
}
119-
let span = class.id.as_ref().map(|id| id.span).unwrap_or(class.span);
119+
let span = class.id.as_ref().map_or(class.span, |id| id.span);
120120
let body = &class.body.body;
121121
match body.as_slice() {
122122
[] => {

0 commit comments

Comments
 (0)