Skip to content

Commit 4c1d6e3

Browse files
committed
remove any changse from CookieJar.DeleteCookieNamed(string)
1 parent 7c8d30d commit 4c1d6e3

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

dotnet/src/webdriver/CookieJar.cs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -100,12 +100,9 @@ public void AddCookie(Cookie cookie)
100100
/// <param name="name">The name of the cookie that is in the browser</param>
101101
public void DeleteCookieNamed(string name)
102102
{
103-
if (name is not null)
104-
{
105-
Dictionary<string, object> parameters = new Dictionary<string, object>();
106-
parameters.Add("name", name);
107-
this.driver.InternalExecute(DriverCommand.DeleteCookie, parameters);
108-
}
103+
Dictionary<string, object> parameters = new Dictionary<string, object>();
104+
parameters.Add("name", name);
105+
this.driver.InternalExecute(DriverCommand.DeleteCookie, parameters);
109106
}
110107

111108
#nullable enable

0 commit comments

Comments
 (0)