Skip to content

Commit

Permalink
Code cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexreisner committed Jan 21, 2012
1 parent 7ca1ba9 commit 170a934
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions lib/geocoder/results/yandex.rb
Expand Up @@ -36,14 +36,10 @@ def state
""
end
end

def sub_state
if !state.empty?
if state['SubAdministrativeArea']
state['SubAdministrativeArea']['SubAdministrativeAreaName']
else
""
end
if !state.empty? and state['SubAdministrativeArea']
state['SubAdministrativeArea']['SubAdministrativeAreaName']
else
""
end
Expand Down

0 comments on commit 170a934

Please sign in to comment.