Check if Bundler is defined
This commit is contained in:
parent
a136ca0d04
commit
f6adc5be94
Notes:
git
2023-03-28 08:18:13 +00:00
@ -235,7 +235,7 @@ class LeakChecker
|
||||
return false if old_env == new_env
|
||||
(old_env.keys | new_env.keys).sort.each {|k|
|
||||
# Don't report changed environment variables caused by Bundler's backups
|
||||
next if k.start_with?(Bundler::EnvironmentPreserver::BUNDLER_PREFIX)
|
||||
next if defined?(Bundler) and k.start_with?(Bundler::EnvironmentPreserver::BUNDLER_PREFIX)
|
||||
|
||||
if old_env.has_key?(k)
|
||||
if new_env.has_key?(k)
|
||||
|
Loading…
x
Reference in New Issue
Block a user