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
|
Enabled: false
|
||||||
Lint/UselessAssignment:
|
Lint/UselessAssignment:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
Lint/UnreachableCode:
|
|
||||||
Enabled: false
|
|
||||||
Lint/ShadowingOuterLocalVariable:
|
Lint/ShadowingOuterLocalVariable:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
|
|
|
@ -104,7 +104,6 @@ class ImportOtrsController < ApplicationController
|
||||||
private
|
private
|
||||||
|
|
||||||
def setup_done
|
def setup_done
|
||||||
return false
|
|
||||||
count = User.all.count()
|
count = User.all.count()
|
||||||
done = true
|
done = true
|
||||||
if count <= 2
|
if count <= 2
|
||||||
|
|
|
@ -10,7 +10,6 @@ module Rss
|
||||||
response = UserAgent.request(url)
|
response = UserAgent.request(url)
|
||||||
if !response.success?
|
if !response.success?
|
||||||
fail "Can't fetch '#{url}', http code: #{response.code}"
|
fail "Can't fetch '#{url}', http code: #{response.code}"
|
||||||
return
|
|
||||||
end
|
end
|
||||||
rss = SimpleRSS.parse response.body
|
rss = SimpleRSS.parse response.body
|
||||||
items = []
|
items = []
|
||||||
|
|
Loading…
Reference in a new issue