Corrected with rubocop cop 'Lint/UnreachableCode'.

This commit is contained in:
Thorsten Eckel 2015-05-07 16:19:45 +02:00
parent 43a924f554
commit 2954485f93
3 changed files with 0 additions and 4 deletions

View file

@ -208,7 +208,5 @@ Style/SpaceBeforeComment:
Enabled: false
Lint/UselessAssignment:
Enabled: false
Lint/UnreachableCode:
Enabled: false
Lint/ShadowingOuterLocalVariable:
Enabled: false

View file

@ -104,7 +104,6 @@ class ImportOtrsController < ApplicationController
private
def setup_done
return false
count = User.all.count()
done = true
if count <= 2

View file

@ -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 = []