Skip to content

Commit

Permalink
Fix rubocop errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
fnando committed Nov 12, 2020
1 parent d502940 commit 5f3aaf0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,6 @@ Metrics/CyclomaticComplexity:

Metrics/PerceivedComplexity:
Enabled: false

Naming/VariableNumber:
Enabled: false
4 changes: 2 additions & 2 deletions lib/browser/accept_language.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ def region
def quality
@quality ||= begin
Float(quality_value || 1.0)
rescue ArgumentError
0.1
rescue ArgumentError
0.1
end
end

Expand Down
3 changes: 1 addition & 2 deletions lib/browser/browser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,7 @@ def self.root
end

class << self
attr_accessor :user_agent_size_limit
attr_accessor :accept_language_size_limit
attr_accessor :user_agent_size_limit, :accept_language_size_limit
end

self.user_agent_size_limit = 2048
Expand Down

0 comments on commit 5f3aaf0

Please sign in to comment.