Avoid EOL if statements

This commit is contained in:
gregoirenovel 2018-01-16 09:25:23 +01:00
parent a050bc20de
commit d33d488db7

View file

@ -8,7 +8,9 @@ module NewGestionnaire
@dossiers = current_gestionnaire.dossiers.where(id: @search_terms.to_i)
end
@dossiers = Dossier.none if @dossiers.nil?
if @dossiers.nil?
@dossiers = Dossier.none
end
# full text search
if @dossiers.empty?