mirror of
https://github.com/danbulant/oxc
synced 2026-05-19 20:28:58 +00:00
refactor(transformer/optional-catch-binding): remove inactive #[allow(clippy::unused_self)] attr (#7158)
This commit is contained in:
parent
8c0a362b8b
commit
1dfd241125
1 changed files with 0 additions and 1 deletions
|
|
@ -48,7 +48,6 @@ impl OptionalCatchBinding {
|
||||||
|
|
||||||
impl<'a> Traverse<'a> for OptionalCatchBinding {
|
impl<'a> Traverse<'a> for OptionalCatchBinding {
|
||||||
/// If CatchClause has no param, add a parameter called `unused`.
|
/// If CatchClause has no param, add a parameter called `unused`.
|
||||||
#[allow(clippy::unused_self)]
|
|
||||||
fn enter_catch_clause(&mut self, clause: &mut CatchClause<'a>, ctx: &mut TraverseCtx<'a>) {
|
fn enter_catch_clause(&mut self, clause: &mut CatchClause<'a>, ctx: &mut TraverseCtx<'a>) {
|
||||||
if clause.param.is_some() {
|
if clause.param.is_some() {
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue