Enable the Lint/UselessAssignment cop
This commit is contained in:
parent
0336ecf639
commit
0c8b228fbf
4 changed files with 7 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue