Enable the Lint/UselessAssignment cop

This commit is contained in:
gregoirenovel 2018-12-24 18:00:32 +01:00 committed by Pierre de La Morinerie
parent 0336ecf639
commit 0c8b228fbf
4 changed files with 7 additions and 4 deletions

View file

@ -10,7 +10,7 @@ class PiecesJustificativesService
errors = with_virus
.map { |_, content| "#{content.original_filename} : virus détecté" }
errors += without_virus
errors + without_virus
.map { |tpj, content| save_pj(content, dossier, tpj, user) }
.compact()
end