Skip to content

Commit 3ee6d2a

Browse files
committed
Fixed broken require.
1 parent 23e2358 commit 3ee6d2a

File tree

1 file changed

+2
-6
lines changed
  • lib/concurrent/atomic_reference

1 file changed

+2
-6
lines changed

lib/concurrent/atomic_reference/ruby.rb

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,8 @@
44
begin
55
require 'concurrent_ruby_ext'
66
rescue LoadError
7-
begin
8-
# may be a Windows cross-compiled native gem
9-
require "#{RUBY_VERSION[0..2]}/concurrent_ruby_ext"
10-
rescue LoadError
11-
warn 'Attempted to load C extensions on unsupported platform. Continuing with pure-Ruby.'
12-
end
7+
# may be a Windows cross-compiled native gem
8+
require "#{RUBY_VERSION[0..2]}/concurrent_ruby_ext"
139
end
1410
end
1511

0 commit comments

Comments
 (0)