summaryrefslogtreecommitdiff
path: root/lib/bundler/graph.rb
diff options
context:
space:
mode:
authorVictor Koronen <koronen@kth.se>2015-08-08 16:35:44 +0200
committerVictor Koronen <koronen@kth.se>2015-08-14 12:29:43 +0200
commit772db79fa1c67bafd6f0d0574af0aaf1f9946511 (patch)
tree0075ee34f972bbe60e784d07f0865e13ecd89ef4 /lib/bundler/graph.rb
parent8af3287b61592e57c3f3ecf9e6d45e5e6744920c (diff)
downloadbundler-772db79fa1c67bafd6f0d0574af0aaf1f9946511.tar.gz
Fix Style/Not
Replace `reject!` with `select!` to avoid double negation.
Diffstat (limited to 'lib/bundler/graph.rb')
-rw-r--r--lib/bundler/graph.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bundler/graph.rb b/lib/bundler/graph.rb
index 66ea2d99a8..6bf5c2d151 100644
--- a/lib/bundler/graph.rb
+++ b/lib/bundler/graph.rb
@@ -102,8 +102,8 @@ module Bundler
}
if platform_only
- matches.reject! { |spec|
- not Gem::Platform.match spec.platform
+ matches.select! { |spec|
+ Gem::Platform.match spec.platform
}
end