diff options
author | Samuel Giddins <segiddins@segiddins.me> | 2016-02-05 10:44:54 -0600 |
---|---|---|
committer | Samuel Giddins <segiddins@segiddins.me> | 2016-02-05 10:44:54 -0600 |
commit | 1f4a36fcf467c6af469bfa8a89032464f30b99bd (patch) | |
tree | 538a355da2cb1a90e40340c19e94ea5733626691 /lib/bundler/installer | |
parent | 661a2d392346094ffbc671d8dbb2e10710f02dbe (diff) | |
download | bundler-1f4a36fcf467c6af469bfa8a89032464f30b99bd.tar.gz |
[RuboCop] Update to 0.37.0seg-rubocop-0.37
Diffstat (limited to 'lib/bundler/installer')
-rw-r--r-- | lib/bundler/installer/parallel_installer.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/installer/parallel_installer.rb b/lib/bundler/installer/parallel_installer.rb index 0a276aa9ea..bd19da475b 100644 --- a/lib/bundler/installer/parallel_installer.rb +++ b/lib/bundler/installer/parallel_installer.rb @@ -46,7 +46,7 @@ class ParallelInstaller @dependencies ||= begin deps = all_dependencies.reject {|dep| ignorable_dependency? dep } missing = deps.reject {|dep| all_spec_names.include? dep.name } - if missing.size > 0 + unless missing.empty? raise Bundler::LockfileError, "Your Gemfile.lock is corrupt. The following #{missing.size > 1 ? "gems are" : "gem is"} missing " \ "from the DEPENDENCIES section: '#{missing.map(&:name).join('\' \'')}'" end |