From 831457dd8f9c991b06703c3ad24a8840586e41ec Mon Sep 17 00:00:00 2001 From: Samuel Giddins Date: Thu, 26 Nov 2015 12:35:57 -0600 Subject: [RuboCop] Enable Style/EmptyElse --- .rubocop_todo.yml | 8 -------- lib/bundler/fetcher.rb | 2 -- lib/bundler/ruby_version.rb | 2 -- 3 files changed, 12 deletions(-) diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 7fa5daf6c7..65707ff2c4 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -83,14 +83,6 @@ Style/ClassAndModuleChildren: Style/Documentation: Enabled: false -# Offense count: 2 -# Cop supports --auto-correct. -# Configuration parameters: EnforcedStyle, SupportedStyles. -Style/EmptyElse: - Exclude: - - 'lib/bundler/fetcher.rb' - - 'lib/bundler/ruby_version.rb' - # Offense count: 10 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles. diff --git a/lib/bundler/fetcher.rb b/lib/bundler/fetcher.rb index aa3e4dedf9..abb252971c 100644 --- a/lib/bundler/fetcher.rb +++ b/lib/bundler/fetcher.rb @@ -180,8 +180,6 @@ module Bundler def http_proxy if uri = connection.proxy_uri uri.to_s - else - nil end end diff --git a/lib/bundler/ruby_version.rb b/lib/bundler/ruby_version.rb index 138262e3db..34268c79f2 100644 --- a/lib/bundler/ruby_version.rb +++ b/lib/bundler/ruby_version.rb @@ -53,8 +53,6 @@ module Bundler [:engine_version, engine_version, other.engine_version] elsif patchlevel != other.patchlevel && @patchlevel [:patchlevel, patchlevel, other.patchlevel] - else - nil end end -- cgit v1.2.1