Explorar el Código

Fixed AllViewsTester

Tig hace 1 año
padre
commit
d6b25d3aa7
Se han modificado 1 ficheros con 1 adiciones y 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;
         }