summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2019-02-23 22:27:09 +0100
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2019-03-13 13:20:58 +0100
commit7985d9ababd4dee972d2a1ac8571b2db43eaf76b (patch)
tree90027bd9590b4b96f6202b02c87735905f49876b
parent6d2b42ad1459710acc56194e7be02ba8c2db3f96 (diff)
downloadbundler-7985d9ababd4dee972d2a1ac8571b2db43eaf76b.tar.gz
Remove unnecessary condition
This is require "built-in" behavior, it only loads files unless they have been loaded before. So if the constant is defined, the file should've been already loaded. Unless another file is defining that constant, but in that case I'd like to know.
-rw-r--r--spec/support/rubygems_ext.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/support/rubygems_ext.rb b/spec/support/rubygems_ext.rb
index f031570e33..edd66278ad 100644
--- a/spec/support/rubygems_ext.rb
+++ b/spec/support/rubygems_ext.rb
@@ -1,7 +1,7 @@
# frozen_string_literal: true
require "rubygems/user_interaction"
-require "support/path" unless defined?(Spec::Path)
+require "support/path"
module Spec
module Rubygems