summaryrefslogtreecommitdiff
path: root/lib/bundler/settings.rb
diff options
context:
space:
mode:
authorSamuel Giddins <segiddins@segiddins.me>2016-07-14 22:20:40 -0500
committerSamuel Giddins <segiddins@segiddins.me>2016-07-20 09:35:41 -0500
commitc476ee2672b506f7f8909cd44ba4111da4c2b5c2 (patch)
treebe3480874093648d116e71976ef869bbebe63112 /lib/bundler/settings.rb
parentaf80780f713f8f798d67d1511c2817871c60f125 (diff)
downloadbundler-c476ee2672b506f7f8909cd44ba4111da4c2b5c2.tar.gz
[RuboCop] Update to 0.41.2
Diffstat (limited to 'lib/bundler/settings.rb')
-rw-r--r--lib/bundler/settings.rb7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/bundler/settings.rb b/lib/bundler/settings.rb
index ff0b146054..d24b66f304 100644
--- a/lib/bundler/settings.rb
+++ b/lib/bundler/settings.rb
@@ -44,12 +44,11 @@ module Bundler
key = key_for(name)
value = (@local_config[key] || ENV[key] || @global_config[key] || DEFAULT_CONFIG[name])
- case
- when value.nil?
+ if value.nil?
nil
- when is_bool(name) || value == "false"
+ elsif is_bool(name) || value == "false"
to_bool(value)
- when is_num(name)
+ elsif is_num(name)
value.to_i
else
value