mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-16 13:14:03 +00:00
Fix linting cops
This commit is contained in:
parent
056fe5ec3f
commit
31212b4f1c
4 changed files with 6 additions and 6 deletions
|
|
@ -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 }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue