Skip to content

Commit 4562685

Browse files
committed
[dotnet] Fix compilation warnings in cdp generator and tests
1 parent bd8c5d9 commit 4562685

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

dotnet/test/common/CorrectEventFiringTest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -333,9 +333,9 @@ public void SendingKeysToAFocusedElementShouldNotBlurThatElement()
333333
{
334334
System.Threading.Thread.Sleep(200);
335335
}
336-
catch (Exception e)
336+
catch (Exception)
337337
{
338-
throw e;
338+
throw;
339339
}
340340
}
341341
if (!focused)

dotnet/test/common/UnexpectedAlertBehaviorTest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,11 @@ private Func<bool> ElementTextToBeEqual(IWebElement resultElement, string expect
9191
{
9292
return resultElement.Text == expectedAlertText;
9393
}
94-
catch (UnhandledAlertException e)
94+
catch (UnhandledAlertException)
9595
{
9696
if (!silentlyHandlePrompt)
9797
{
98-
throw e;
98+
throw;
9999
}
100100
}
101101
catch (NoSuchElementException)

dotnet/test/support/Events/EventFiringWebDriverTest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,10 +190,10 @@ public void ShouldUnwrapElementArgsWhenCallingScripts()
190190
{
191191
testedDriver.ExecuteScript("foo", element);
192192
}
193-
catch (Exception e)
193+
catch (Exception)
194194
{
195195
// This is the error we're trying to fix
196-
throw e;
196+
throw;
197197
}
198198
}
199199

third_party/dotnet/devtools/src/generator/CodeGen/TemplatesManager.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ public TemplatesManager(CodeGenerationSettings settings)
3131
}
3232

3333
/// <summary>
34-
/// Returns a generator singleton for the specified template path.
34+
/// Returns a generator singleton for the specified template settings.
3535
/// </summary>
36-
/// <param name="templatePath"></param>
36+
/// <param name="templateSettings">The settings for a generator.</param>
3737
/// <returns></returns>
3838
public Func<object, string> GetGeneratorForTemplate(CodeGenerationTemplateSettings templateSettings)
3939
{

0 commit comments

Comments
 (0)