Skip to content

Commit

Permalink
Minor: removed hard coded 60. Added check to ensure _config is a Hash.
Browse files Browse the repository at this point in the history
  • Loading branch information
jylamont committed Sep 17, 2020
1 parent fece8e1 commit fb3b1b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/vero/api/base_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ def perform
def options=(val)
new_options = options_with_symbolized_keys(val)

if (extra_config = new_options.delete(:_config))
@http_timeout = extra_config.fetch(:http_timeout, 60)
if (extra_config = new_options.delete(:_config)) && extra_config.is_a?(Hash)
@http_timeout = extra_config[:http_timeout]
end

@options = new_options
Expand Down

0 comments on commit fb3b1b5

Please sign in to comment.