Skip to content

Commit c2875f4

Browse files
authored
Eagerly instantiate RubyIndexer::Configuration (#1142)
1 parent 0671289 commit c2875f4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/ruby_indexer/ruby_indexer.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212
require "ruby_indexer/lib/ruby_indexer/prefix_tree"
1313

1414
module RubyIndexer
15+
@configuration = T.let(Configuration.new, Configuration)
16+
1517
class << self
1618
extend T::Sig
1719

1820
sig { returns(Configuration) }
19-
def configuration
20-
@configuration ||= T.let(Configuration.new, T.nilable(Configuration))
21-
end
21+
attr_reader :configuration
2222
end
2323
end

0 commit comments

Comments
 (0)