Skip to content

Commit d0446f4

Browse files
committed
Enable IDE0080 (suppression operator has no effect) and fix violation.
1 parent 19f67f5 commit d0446f4

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
@@ -1150,7 +1150,7 @@ protected override void OnMouseDown(MouseEventArgs e)
11501150
{
11511151
// do marker drag here
11521152
}
1153-
else if (ModifierKeys is Keys.Shift && CurrentCell.Column! is { Type: ColumnType.Text } col)
1153+
else if (ModifierKeys is Keys.Shift && CurrentCell.Column is { Type: ColumnType.Text } col)
11541154
{
11551155
if (_selectedItems.Count is not 0)
11561156
{

0 commit comments

Comments
 (0)