Skip to content

Commit f4548aa

Browse files
committed
♻️ Rename autoload path var
1 parent 92dabbb commit f4548aa

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

lib/net/imap/sasl.rb

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,13 @@ class IMAP
2323
#
2424
module SASL
2525

26-
# autoloading to avoid loading all of the regexps when they aren't used.
27-
28-
sasl_stringprep_rb = File.expand_path("sasl/stringprep", __dir__)
29-
autoload :StringPrep, sasl_stringprep_rb
30-
autoload :SASLprep, sasl_stringprep_rb
31-
autoload :StringPrepError, sasl_stringprep_rb
32-
autoload :ProhibitedCodepoint, sasl_stringprep_rb
33-
autoload :BidiStringError, sasl_stringprep_rb
26+
stringprep_path = File.expand_path("sasl/stringprep", __dir__)
27+
autoload :StringPrep, stringprep_path
28+
autoload :SASLprep, stringprep_path
29+
autoload :StringPrepError, stringprep_path
30+
autoload :ProhibitedCodepoint, stringprep_path
31+
autoload :BidiStringError, stringprep_path
32+
3433

3534
module_function
3635

0 commit comments

Comments
 (0)