summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--spec/bundler/support/path.rb9
1 files changed, 1 insertions, 8 deletions
diff --git a/spec/bundler/support/path.rb b/spec/bundler/support/path.rb
index 048e0e6018..3ef677d6de 100644
--- a/spec/bundler/support/path.rb
+++ b/spec/bundler/support/path.rb
@@ -258,14 +258,7 @@ module Spec
end
def ruby_core?
- # avoid to warnings
- @ruby_core ||= nil
-
- if @ruby_core.nil?
- @ruby_core = true & ENV["GEM_COMMAND"]
- else
- @ruby_core
- end
+ !ENV["GEM_COMMAND"].nil?
end
def git_root