Skip to content

Commit

Permalink
style: fix rubocop violations
Browse files Browse the repository at this point in the history
  • Loading branch information
tomlongridge committed Aug 15, 2019
1 parent 927f5f5 commit af3bdcd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions lib/bugsnag/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,7 @@ def initialize
self.meta_data_filters = Set.new(DEFAULT_META_DATA_FILTERS)
self.hostname = default_hostname
self.runtime_versions = { "ruby" => RUBY_VERSION }
if defined?(JRUBY_VERSION)
self.runtime_versions["jruby"] = JRUBY_VERSION
end
self.runtime_versions["jruby"] = JRUBY_VERSION if defined?(JRUBY_VERSION)
self.timeout = 15
self.notify_release_stages = nil
self.auto_capture_sessions = true
Expand Down
2 changes: 1 addition & 1 deletion lib/bugsnag/integrations/rack.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def initialize(app)

# Set environment data for payload
config.app_type ||= "rack"
config.runtime_versions["rack"] = ::Rack::release if defined?(::Rack)
config.runtime_versions["rack"] = ::Rack.release if defined?(::Rack)
config.runtime_versions["sinatra"] = ::Sinatra::VERSION if defined?(::Sinatra)
end
end
Expand Down

0 comments on commit af3bdcd

Please sign in to comment.