Skip to content

Commit dd8b51f

Browse files
trebyp0deje
authored andcommitted
bugfix: suppress deprecation warning when no extensions were added to profile
Signed-off-by: Alex Rodionov <p0deje@gmail.com>
1 parent 1cb3f69 commit dd8b51f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rb/lib/selenium/webdriver/chrome/profile.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def as_json(*)
7878
extensions.concat(@encoded_extensions)
7979

8080
opts = {directory: @directory || layout_on_disk}
81-
opts[:extensions] = extensions if extensions
81+
opts[:extensions] = extensions if extensions.any?
8282
opts
8383
end
8484

0 commit comments

Comments
 (0)