Fix a coding style error by CodeClimate

This commit is contained in:
Jyri-Petteri Paloposki 2021-08-26 13:22:28 +03:00
parent 5a6ee73d7d
commit 406fdf2335

View file

@ -170,9 +170,7 @@ module ApplicationHelper
def javascript_tag_for_i18n_datepicker
locale = I18n.locale
# do not include en as locale since this the available by default
if locale && locale != :en
javascript_include_tag("datepicker-#{locale}")
end
javascript_include_tag("datepicker-#{locale}") if locale && locale != :en
end
def done_path(controller_name, type)