summaryrefslogtreecommitdiff
path: root/lib/bundler/cli/config.rb
diff options
context:
space:
mode:
authorSamuel Giddins <segiddins@segiddins.me>2016-01-14 16:21:54 -0600
committerSamuel Giddins <segiddins@segiddins.me>2016-01-31 22:21:13 -0600
commite85b990916f16dd9a56dbafae6503f7a48d55131 (patch)
treef9244f2ab14db6abf5c0bc38ee5508ccfc94aa30 /lib/bundler/cli/config.rb
parent9297bcf0135a0bd8c1df29b929267582ca66217d (diff)
downloadbundler-e85b990916f16dd9a56dbafae6503f7a48d55131.tar.gz
[RuboCop] Address Style/GuardClause
Diffstat (limited to 'lib/bundler/cli/config.rb')
-rw-r--r--lib/bundler/cli/config.rb7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/bundler/cli/config.rb b/lib/bundler/cli/config.rb
index cfb8b660e8..2dc628b2dc 100644
--- a/lib/bundler/cli/config.rb
+++ b/lib/bundler/cli/config.rb
@@ -9,10 +9,9 @@ module Bundler
@thor = thor
@name = peek = args.shift
@scope = "global"
- if peek && peek =~ /^\-\-/
- @name = args.shift
- @scope = $'
- end
+ return unless peek && peek =~ /^\-\-/
+ @name = args.shift
+ @scope = $'
end
def run