diff options
author | David Rodriguez <[email protected]> | 2021-10-18 18:53:09 +0200 |
---|---|---|
committer | git <[email protected]> | 2024-06-06 18:44:41 +0000 |
commit | b5949ad62a1bd2f3caee79ad2b4dbbb4d37d1092 (patch) | |
tree | c04d437a11e54d8e64c396ff00f88884fc4dd418 | |
parent | 4720b7d257606525def271bfbdbc18fd1bba556a (diff) |
[rubygems/rubygems] Simplify check for ruby-core setup
https://github.com/rubygems/rubygems/commit/77bc6f1ecc
-rw-r--r-- | spec/bundler/support/path.rb | 9 |
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 |