diff --git a/.rubocop.yml b/.rubocop.yml index 7d3996c96..9a58c0b0f 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -208,7 +208,5 @@ Style/SpaceBeforeComment: Enabled: false Lint/UselessAssignment: Enabled: false -Lint/UnreachableCode: - Enabled: false Lint/ShadowingOuterLocalVariable: Enabled: false diff --git a/app/controllers/import_otrs_controller.rb b/app/controllers/import_otrs_controller.rb index d7bba4483..d163c900c 100644 --- a/app/controllers/import_otrs_controller.rb +++ b/app/controllers/import_otrs_controller.rb @@ -104,7 +104,6 @@ class ImportOtrsController < ApplicationController private def setup_done - return false count = User.all.count() done = true if count <= 2 diff --git a/lib/rss.rb b/lib/rss.rb index 819ac02e5..ec90fdcb4 100644 --- a/lib/rss.rb +++ b/lib/rss.rb @@ -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 = []