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

Commit

Permalink
fix: clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
kaioduarte committed Nov 23, 2022
1 parent 0fb3782 commit 5d00415
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,7 @@ impl Rule for NoExtraNonNullAssertion {

// Cases considered as invalid:
// - TsNonNullAssertionAssignment > TsNonNullAssertionAssignment
let has_extra_non_assertion = match parent {
JsAnyAssignment::TsNonNullAssertionAssignment(_) => true,
_ => false,
};

if has_extra_non_assertion {
if matches!(parent, JsAnyAssignment::TsNonNullAssertionAssignment(_)) {
return Some(());
}
}
Expand Down

0 comments on commit 5d00415

Please sign in to comment.