Corrected with rubocop cop 'Lint/UnreachableCode'.
This commit is contained in:
parent
43a924f554
commit
2954485f93
3 changed files with 0 additions and 4 deletions
|
@ -208,7 +208,5 @@ Style/SpaceBeforeComment:
|
|||
Enabled: false
|
||||
Lint/UselessAssignment:
|
||||
Enabled: false
|
||||
Lint/UnreachableCode:
|
||||
Enabled: false
|
||||
Lint/ShadowingOuterLocalVariable:
|
||||
Enabled: false
|
||||
|
|
|
@ -104,7 +104,6 @@ class ImportOtrsController < ApplicationController
|
|||
private
|
||||
|
||||
def setup_done
|
||||
return false
|
||||
count = User.all.count()
|
||||
done = true
|
||||
if count <= 2
|
||||
|
|
|
@ -10,7 +10,6 @@ module Rss
|
|||
response = UserAgent.request(url)
|
||||
if !response.success?
|
||||
fail "Can't fetch '#{url}', http code: #{response.code}"
|
||||
return
|
||||
end
|
||||
rss = SimpleRSS.parse response.body
|
||||
items = []
|
||||
|
|
Loading…
Reference in a new issue