Fix all Style/RedundantReturn rubocop issues
This commit is contained in:
@@ -475,16 +475,6 @@ Style/RedundantParentheses:
|
|||||||
- 'spec/features/proposals_spec.rb'
|
- 'spec/features/proposals_spec.rb'
|
||||||
- 'spec/models/debate_spec.rb'
|
- 'spec/models/debate_spec.rb'
|
||||||
|
|
||||||
# Offense count: 5
|
|
||||||
# Cop supports --auto-correct.
|
|
||||||
# Configuration parameters: AllowMultipleReturnValues.
|
|
||||||
Style/RedundantReturn:
|
|
||||||
Exclude:
|
|
||||||
- 'app/models/ahoy/data_source.rb'
|
|
||||||
- 'app/models/verification/management/document.rb'
|
|
||||||
- 'lib/capistrano/template.rb'
|
|
||||||
- 'lib/census_api.rb'
|
|
||||||
|
|
||||||
# Offense count: 49
|
# Offense count: 49
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
Style/RedundantSelf:
|
Style/RedundantSelf:
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ module Ahoy
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
return data
|
data
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|||||||
@@ -25,9 +25,9 @@ class Verification::Management::Document
|
|||||||
def valid_age?(response)
|
def valid_age?(response)
|
||||||
if under_age?(response)
|
if under_age?(response)
|
||||||
errors.add(:age, true)
|
errors.add(:age, true)
|
||||||
return false
|
false
|
||||||
else
|
else
|
||||||
return true
|
true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user