Skip to content

Commit c7068e4

Browse files
author
Rens van Moorsel
committed
fix linter issues
1 parent 70071a0 commit c7068e4

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

app/controllers/public/home_controller.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ def index
1313
@participate = @activities.map(&:id)
1414
end
1515

16-
private
17-
1816
def redirect_to_locale
1917
# Check if the URL already contains a locale
2018
return if request.path.match?(/^\/\?l=(nl|en)(\/|$)/)
@@ -23,7 +21,7 @@ def redirect_to_locale
2321
locale = request.env['HTTP_ACCEPT_LANGUAGE'].to_s.start_with?('nl') ? 'nl' : 'en'
2422

2523
# Redirect to /?l=nl/... or /?l=en/...
26-
redirect_to("/?l=#{locale}#{request.path}", allow_other_host: false)
24+
redirect_to("/?l=#{ locale }#{ request.path }", allow_other_host: false)
2725
end
2826

2927
def create

0 commit comments

Comments
 (0)