Do not use variables in void context
This commit is contained in:
parent
31212b4f1c
commit
3901973fd6
2 changed files with 1 additions and 3 deletions
|
|
@ -75,9 +75,8 @@ Lint/UnusedMethodArgument:
|
||||||
Lint/UselessAssignment:
|
Lint/UselessAssignment:
|
||||||
Enabled: true
|
Enabled: true
|
||||||
|
|
||||||
# Offense count: 1
|
|
||||||
Lint/Void:
|
Lint/Void:
|
||||||
Enabled: false
|
Enabled: true
|
||||||
|
|
||||||
# Offense count: 17
|
# Offense count: 17
|
||||||
Style/AccessorMethodName:
|
Style/AccessorMethodName:
|
||||||
|
|
|
||||||
|
|
@ -182,7 +182,6 @@ class ProposalController < ApplicationController
|
||||||
end
|
end
|
||||||
|
|
||||||
def restart
|
def restart
|
||||||
@event
|
|
||||||
if @event.transition_possible? :restart
|
if @event.transition_possible? :restart
|
||||||
begin
|
begin
|
||||||
@event.restart
|
@event.restart
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue