Browse Source

Remove redundant extra capabilities default checking

Daniel Gempesaw 11 năm trước cách đây
mục cha
commit
959f599c55
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      lib/Selenium/Remote/Driver.pm

+ 1 - 1
lib/Selenium/Remote/Driver.pm

@@ -343,7 +343,7 @@ sub _execute_command {
 # desired capabilities on the server.
 sub new_session {
     my ( $self, $extra_capabilities ) = @_;
-    $extra_capabilities ||= {};
+
     my $args = {
         'desiredCapabilities' => {
             'browserName'       => $self->browser_name,