diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-04-13 19:14:45 +0200 |
---|---|---|
committer | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-04-13 19:14:45 +0200 |
commit | f78e4c2d41855150d163cc861a72db977476b059 (patch) | |
tree | 136bd6cc387bfb881950d3c36d320f53fd9af735 /lib/bundler/cli/update.rb | |
parent | ffd89f457d6e150c3b41111a7dc713299319e871 (diff) | |
download | bundler-f78e4c2d41855150d163cc861a72db977476b059.tar.gz |
Early return earlier to further simplify
Diffstat (limited to 'lib/bundler/cli/update.rb')
-rw-r--r-- | lib/bundler/cli/update.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bundler/cli/update.rb b/lib/bundler/cli/update.rb index 29b4a397b0..614cc4d22b 100644 --- a/lib/bundler/cli/update.rb +++ b/lib/bundler/cli/update.rb @@ -69,9 +69,9 @@ module Bundler if locked_gems = Bundler.definition.locked_gems gems.each do |name| locked_spec = locked_gems.specs.find {|s| s.name == name } - locked_source = locked_spec && locked_spec.source + next unless locked_spec + locked_source = locked_spec.source locked_version = locked_spec.version - next unless locked_version new_spec = Bundler.definition.specs[name].first new_source = new_spec && new_spec.source new_version = new_spec.version |