Skip to content

Commit

Permalink
syntax error
Browse files Browse the repository at this point in the history
  • Loading branch information
wsun committed Jan 13, 2013
1 parent a11ed20 commit 764566d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/jobs/process.rb
Expand Up @@ -90,10 +90,10 @@ def perform
lat = tweet_loc.latitude
lon = tweet_loc.longitude
else # look for location in db, create as appropriate
if user.location.nil?
if result.user.location.nil?
next
end
sanitized = user.location.gsub(/[^0-9A-Za-z]/, '')
sanitized = result.user.location.gsub(/[^0-9A-Za-z]/, '')
search_query = Location.search(sanitized)
if search_query.empty? # new query
new_loc = Location.new(:address => sanitized)
Expand Down

0 comments on commit 764566d

Please sign in to comment.