Fix linting cops

This commit is contained in:
Artem Chernikov 2014-07-21 14:42:58 +02:00
parent 056fe5ec3f
commit 31212b4f1c
4 changed files with 6 additions and 6 deletions

View file

@ -187,7 +187,7 @@ module Admin
total = @conference.events.where(state: mystate).count
status = "#{myvar.name}"
percent = 0
percent = 0 # rubocop:disable Lint/UselessAssignment
if value != 0
percent = (value.to_f / total * 100).round(2)
result << { 'status' => status, 'value' => value, 'percent' => percent }