Skip to content

Commit 150b92c

Browse files
[rb] modified as per suggestion by Augustin
1 parent 310a719 commit 150b92c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rb/lib/selenium/webdriver/remote/bridge.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ def add_cookie(cookie)
385385
end
386386

387387
def delete_cookie(name)
388-
raise ArgumentError, 'Cookie name cannot be null or empty' if name.nil? || name.empty?
388+
raise ArgumentError, 'Cookie name cannot be null or empty' unless name || !name.empty?
389389
execute :delete_cookie, name: name
390390
end
391391

0 commit comments

Comments
 (0)