Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
adrienpoly committed May 6, 2024
1 parent 58949ef commit cc7b2b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/locales_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ def update

def referer
# referer url without the locale params
request.referer.gsub(/(\?|&)locale=[a-z]{2}/, '') if request.referer
request.referer.gsub(/(\?|&)locale=[a-z]{2}/, "") if request.referer
end
end

0 comments on commit cc7b2b4

Please sign in to comment.