Skip to content

Commit

Permalink
use discard for not used argments
Browse files Browse the repository at this point in the history
  • Loading branch information
tomlm committed Nov 29, 2024
1 parent 99393d3 commit 41a5240
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/Consolonia.Core/Controls/MessageBox.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,16 +45,18 @@ public MessageBox()

InitializeComponent();

this.AttachedToVisualTree += (s, e) =>
this.AttachedToVisualTree += (_, _) =>

Check notice on line 48 in src/Consolonia.Core/Controls/MessageBox.axaml.cs

View workflow job for this annotation

GitHub Actions / build

"[ArrangeThisQualifier] Qualifier 'this.' is redundant" on /home/runner/work/Consolonia/Consolonia/src/Consolonia.Core/Controls/MessageBox.axaml.cs(48,13)
{
// we don't hook this up until the dialog is shown as the visible state is driven off of the DataContext
// which is set at ShowDialogAsync() time.
if (OkButton.IsVisible)
OkButton.AttachedToVisualTree += (s2, e2) => OkButton.Focus();
OkButton.AttachedToVisualTree += (_, _) => OkButton.Focus();
else if (YesButton.IsVisible)
YesButton.AttachedToVisualTree += (s2, e2) => YesButton.Focus();
YesButton.AttachedToVisualTree += (_, _) => YesButton.Focus();
else if (CancelButton.IsVisible)
CancelButton.AttachedToVisualTree += (s2, e2) => CancelButton.Focus();
CancelButton.AttachedToVisualTree += (_, _) => CancelButton.Focus();
else if (NoButton.IsVisible)
NoButton.AttachedToVisualTree += (s2, e2) => NoButton.Focus();
NoButton.AttachedToVisualTree += (_, _) => NoButton.Focus();
};
}

Expand Down

0 comments on commit 41a5240

Please sign in to comment.