Skip to content

Commit

Permalink
chore: run just l
Browse files Browse the repository at this point in the history
  • Loading branch information
ryo-ebata committed Jul 8, 2024
1 parent d559479 commit d6f4ad3
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions crates/biome_aria/src/roles.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1337,15 +1337,15 @@ impl<'a> AriaRoles {
let role_name = attributes
.get("role")
.and_then(|role| role.first())
.map(|r| self.get_role(r))
.unwrap_or_else(|| self.get_implicit_role(element_name, attributes));
.map_or_else(
|| self.get_implicit_role(element_name, attributes),
|r| self.get_role(r),
);

match role_name.map(|role| role.type_name()) {
Some("biome_aria::roles::PresentationRole" | "biome_aria::roles::GenericRole") => {
return false
}
Some(_) => return true,
None => return false,
Some("biome_aria::roles::PresentationRole" | "biome_aria::roles::GenericRole") => false,
Some(_) => true,
None => false,
}
}
}
Expand Down

0 comments on commit d6f4ad3

Please sign in to comment.