Skip to content

Commit bfd2009

Browse files
committed
Enable IDE0080 (suppression operator has no effect) and fix violation.
1 parent c632b57 commit bfd2009

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.editorconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ dotnet_diagnostic.IDE0071.severity = suggestion
9797
dotnet_diagnostic.IDE0074.severity = suggestion
9898
# Use pattern matching
9999
dotnet_diagnostic.IDE0078.severity = suggestion
100+
# Suppression operator has no effect and can be misinterpreted
101+
dotnet_diagnostic.IDE0080.severity = warning
100102
# Convert typeof to nameof
101103
dotnet_diagnostic.IDE0082.severity = warning
102104
# Use pattern matching (not operator)

src/BizHawk.Client.EmuHawk/CustomControls/InputRoll/InputRoll.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1151,7 +1151,7 @@ protected override void OnMouseDown(MouseEventArgs e)
11511151
{
11521152
// do marker drag here
11531153
}
1154-
else if (ModifierKeys is Keys.Shift && CurrentCell.Column! is { Type: ColumnType.Text } col)
1154+
else if (ModifierKeys is Keys.Shift && CurrentCell.Column is { Type: ColumnType.Text } col)
11551155
{
11561156
if (_selectedItems.Count is not 0)
11571157
{

0 commit comments

Comments
 (0)