Skip to content

Commit

Permalink
[rb] modified as per suggestion by Augustin
Browse files Browse the repository at this point in the history
  • Loading branch information
pallavigitwork committed Jan 20, 2025
1 parent 310a719 commit 150b92c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rb/lib/selenium/webdriver/remote/bridge.rb
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ def add_cookie(cookie)
end

def delete_cookie(name)
raise ArgumentError, 'Cookie name cannot be null or empty' if name.nil? || name.empty?
raise ArgumentError, 'Cookie name cannot be null or empty' unless name || !name.empty?
execute :delete_cookie, name: name
end

Expand Down

0 comments on commit 150b92c

Please sign in to comment.