Skip to content

Commit

Permalink
don't recreate Version object unnecessarily
Browse files Browse the repository at this point in the history
  • Loading branch information
arches committed Nov 27, 2012
1 parent 8ea11b2 commit 2e6e6b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/user_agent/browsers/all.rb
Expand Up @@ -6,7 +6,7 @@ module All
def <=>(other)
if respond_to?(:browser) && other.respond_to?(:browser) &&
browser == other.browser
Version.new(version) <=> Version.new(other.version)
version <=> Version.new(other.version)
else
false
end
Expand Down

0 comments on commit 2e6e6b3

Please sign in to comment.