Skip to content

Commit

Permalink
Remove $LOAD_PATH modifications (#269)
Browse files Browse the repository at this point in the history
They are not needed, but still are invalidating any Bootsnap load path cache if present.
  • Loading branch information
daniel-rikowski authored Aug 27, 2022
1 parent e0b45e1 commit 3120be3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion lib/ruby-units.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
$LOAD_PATH << File.dirname(__FILE__)
require_relative 'ruby_units/namespaced'
Unit = RubyUnits::Unit
3 changes: 0 additions & 3 deletions lib/ruby_units/namespaced.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@

$LOAD_PATH << File.dirname(__FILE__)

# require_relative this file to avoid creating an class alias from Unit to RubyUnits::Unit
require_relative 'version'
require_relative 'configuration'
Expand Down

0 comments on commit 3120be3

Please sign in to comment.