Skip to content

Commit b345522

Browse files
committed
Suppressing .NET static analysis warnings
1 parent f048ab8 commit b345522

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dotnet/src/webdriver/Remote/RemoteWebDriver.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,7 @@ public ReadOnlyCollection<IWebElement> FindElementsById(string id)
568568
if (this.IsSpecificationCompliant)
569569
{
570570
string selector = EscapeCssSelector(id);
571-
if (selector == string.Empty)
571+
if (string.IsNullOrEmpty(selector))
572572
{
573573
// Finding multiple elements with an empty ID will return
574574
// an empty list. However, finding by a CSS selector of '#'

0 commit comments

Comments
 (0)