diff options
| -rw-r--r-- | lib/bundler/definition.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bundler/definition.rb b/lib/bundler/definition.rb index c74bb66c8f..97e795a9b9 100644 --- a/lib/bundler/definition.rb +++ b/lib/bundler/definition.rb @@ -405,8 +405,8 @@ module Bundler @locked_deps.each {|name, d| both_sources[name][1] = d.source } both_sources.each do |name, (dep, lock_source)| - next if lock_source.nil? || (dep && lock_source.can_lock?(dep)) - gemfile_source_name = (dep && dep.source) || "no specified source" + next if lock_source.nil? || lock_source.can_lock?(dep) + gemfile_source_name = dep.source || "no specified source" lockfile_source_name = lock_source changed << "* #{name} from `#{gemfile_source_name}` to `#{lockfile_source_name}`" end |
