summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErick Sasse <esasse@gmail.com>2015-07-17 22:57:29 -0300
committerErick Sasse <esasse@gmail.com>2015-07-19 11:50:50 -0300
commitda2e99ca795d7b20c3072dd2ca418406485220bc (patch)
tree6285401ebfcb88bc6b645b1c0263adae88973217
parentebeed8f34dc0e9cea0581224c53fd5feaf9d8b77 (diff)
downloadbundler-da2e99ca795d7b20c3072dd2ca418406485220bc.tar.gz
Fix Style/SingleLineMethods
-rw-r--r--.rubocop_todo.yml6
-rw-r--r--lib/bundler/deprecate.rb4
2 files changed, 3 insertions, 7 deletions
diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml
index f682174c17..e783f558fe 100644
--- a/.rubocop_todo.yml
+++ b/.rubocop_todo.yml
@@ -411,12 +411,6 @@ Style/SignalException:
Style/SingleLineBlockParams:
Enabled: false
-# Offense count: 1
-# Cop supports --auto-correct.
-# Configuration parameters: AllowIfMethodIsEmpty.
-Style/SingleLineMethods:
- Enabled: false
-
# Offense count: 7
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
diff --git a/lib/bundler/deprecate.rb b/lib/bundler/deprecate.rb
index e6e15b69e7..dd17b8a557 100644
--- a/lib/bundler/deprecate.rb
+++ b/lib/bundler/deprecate.rb
@@ -9,7 +9,9 @@ module Bundler
end
unless Deprecate.respond_to?(:skip_during)
- def Deprecate.skip_during; yield; end
+ def Deprecate.skip_during;
+ yield;
+ end
end
end