Explorar o código

Fixed AllViewsTester

Tig hai 1 ano
pai
achega
d6b25d3aa7
Modificáronse 1 ficheiros con 1 adicións e 3 borrados
  1. 1 3
      UICatalog/Scenarios/AllViewsTester.cs

+ 1 - 3
UICatalog/Scenarios/AllViewsTester.cs

@@ -478,9 +478,7 @@ public class AllViewsTester : Scenario
 
     private void View_Initialized (object sender, EventArgs e)
     {
-        var view = sender as View;
-
-        if (view is null)
+        if (sender is not View view)
         {
             return;
         }