We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
CookieJar.DeleteCookieNamed(string)
1 parent 7c8d30d commit 4c1d6e3Copy full SHA for 4c1d6e3
dotnet/src/webdriver/CookieJar.cs
@@ -100,12 +100,9 @@ public void AddCookie(Cookie cookie)
100
/// <param name="name">The name of the cookie that is in the browser</param>
101
public void DeleteCookieNamed(string name)
102
{
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
- }
+ Dictionary<string, object> parameters = new Dictionary<string, object>();
+ parameters.Add("name", name);
+ this.driver.InternalExecute(DriverCommand.DeleteCookie, parameters);
109
}
110
111
#nullable enable
0 commit comments