Browse Source

fix: Warning CS0168 The variable 'e' is declared but never used

pull/8786/head
Giuseppe Lippolis 4 years ago
parent
commit
404bb8745e
  1. 2
      tests/Avalonia.IntegrationTests.Appium/WindowTests.cs
  2. 2
      tests/Avalonia.IntegrationTests.Appium/WindowTests_MacOS.cs

2
tests/Avalonia.IntegrationTests.Appium/WindowTests.cs

@ -230,7 +230,7 @@ namespace Avalonia.IntegrationTests.Appium
PixelRect.Parse(_session.FindElementByAccessibilityId("ScreenRect").Text),
double.Parse(_session.FindElementByAccessibilityId("Scaling").Text));
}
catch (OpenQA.Selenium.NoSuchElementException e) when (retry++ < 3)
catch (OpenQA.Selenium.NoSuchElementException) when (retry++ < 3)
{
// MacOS sometimes seems to need a bit of time to get itself back in order after switching out
// of fullscreen.

2
tests/Avalonia.IntegrationTests.Appium/WindowTests_MacOS.cs

@ -30,7 +30,7 @@ namespace Avalonia.IntegrationTests.Appium
tab.Click();
return;
}
catch (WebDriverException e) when (retry++ < 3)
catch (WebDriverException) when (retry++ < 3)
{
// MacOS sometimes seems to need a bit of time to get itself back in order after switching out
// of fullscreen.

Loading…
Cancel
Save