Avoid EOL if statements
This commit is contained in:
parent
a050bc20de
commit
d33d488db7
1 changed files with 3 additions and 1 deletions
|
@ -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?
|
||||
|
|
Loading…
Reference in a new issue