diff --git a/UICatalog/Scenarios/AllViewsTester.cs b/UICatalog/Scenarios/AllViewsTester.cs index 1a72616ec..2b8a6f37e 100644 --- a/UICatalog/Scenarios/AllViewsTester.cs +++ b/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; }