Skip to content

Commit

Permalink
dont modify passed options in find. fixes coderhs#37
Browse files Browse the repository at this point in the history
  • Loading branch information
aza committed Sep 4, 2017
1 parent dfa7020 commit 855cbba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/open_weather/find.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ def initialize(options = {})
end

def self.like(q, options = {})
new(options.merge!(q: q, type: 'like')).retrieve
new(options.merge(q: q, type: 'like')).retrieve
end

def self.accurate(q, options = {})
new(options.merge!(q: q, type: 'accurate')).retrieve
new(options.merge(q: q, type: 'accurate')).retrieve
end
end
end
end

0 comments on commit 855cbba

Please sign in to comment.