Skip to content

Commit

Permalink
Suppressing .NET static analysis warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jimevans committed Jan 27, 2016
1 parent f048ab8 commit b345522
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dotnet/src/webdriver/Remote/RemoteWebDriver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@ public ReadOnlyCollection<IWebElement> FindElementsById(string id)
if (this.IsSpecificationCompliant)
{
string selector = EscapeCssSelector(id);
if (selector == string.Empty)
if (string.IsNullOrEmpty(selector))
{
// Finding multiple elements with an empty ID will return
// an empty list. However, finding by a CSS selector of '#'
Expand Down

0 comments on commit b345522

Please sign in to comment.