Skip to content

Commit

Permalink
fix codeclimate error
Browse files Browse the repository at this point in the history
  • Loading branch information
nstjean committed Jan 6, 2020
1 parent cfe2a05 commit b04b14e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/editor_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def rich
end

# if user has a location, set the @lat and @lon
if @lat.nil? && @lon.nil? && current_user&.has_power_tag("lat" && current_user&.has_power_tag("lon")
if @lat.nil? && @lon.nil? && current_user&.has_power_tag("lat") && current_user&.has_power_tag("lon")
@lat = current_user.get_value_of_power_tag("lat").to_f
@lon = current_user.get_value_of_power_tag("lon").to_f
@map_blurred = current_user.has_tag('location:blurred')
Expand Down

0 comments on commit b04b14e

Please sign in to comment.