Skip to content

Commit

Permalink
Changed "and" to "&&" in code lines.
Browse files Browse the repository at this point in the history
  • Loading branch information
VijendraPandey authored Oct 28, 2022
1 parent affe0fc commit 9867a4e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/controllers/editor_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ def rich
@main_image = Image.find_by(id: params[:main_image]).path
end

if params[:tags]&.include? "lat:" and params[:tags]&.include? "lon:"
if params[:tags]&.include? "lat:" && params[:tags]&.include? "lon:"
tags = params[:tags].split(',')
tags.each do |x|
x.include? "lat:" and (@lat = x.split(':')[1])
x.include? "lon:" and (@lon = x.split(':')[1])
x.include? "zoom:" and (@zoom = x.split(':')[1])
x.include? "lat:" && (@lat = x.split(':')[1])
x.include? "lon:" && (@lon = x.split(':')[1])
x.include? "zoom:" && (@zoom = x.split(':')[1])
end
end

Expand Down

0 comments on commit 9867a4e

Please sign in to comment.