Skip to content

Commit

Permalink
bugfix: suppress deprecation warning when no extensions were added to…
Browse files Browse the repository at this point in the history
… profile

Signed-off-by: Alex Rodionov <p0deje@gmail.com>
  • Loading branch information
treby authored and p0deje committed Mar 19, 2018
1 parent 1cb3f69 commit dd8b51f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rb/lib/selenium/webdriver/chrome/profile.rb
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def as_json(*)
extensions.concat(@encoded_extensions)

opts = {directory: @directory || layout_on_disk}
opts[:extensions] = extensions if extensions
opts[:extensions] = extensions if extensions.any?
opts
end

Expand Down

0 comments on commit dd8b51f

Please sign in to comment.