Skip to content

Commit a1da4f3

Browse files
lucasnobredevBillWagner
authored andcommitted
remove of condition unecessary (#425)
1 parent 9a22550 commit a1da4f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

snippets/csharp/programming-guide/discards/discard-pattern2.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ private static void ProvidesFormatInfo(object obj)
2121
Console.Write("A null object reference: ");
2222
Console.WriteLine("Its use could result in a NullReferenceException");
2323
}
24-
else if (obj is var _)
24+
else
2525
Console.WriteLine($"Some object type without format information");
2626
}
2727
}

0 commit comments

Comments
 (0)