Skip to content

Commit f49c3cf

Browse files
committed
🔧 Use global config for Net::IMAP.debug
1 parent 06677aa commit f49c3cf

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

lib/net/imap.rb

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -740,14 +740,12 @@ class IMAP < Protocol
740740
# Returns the global Config object
741741
def self.config; Config.global end
742742

743-
# Returns the debug mode.
744-
def self.debug
745-
return @@debug
746-
end
743+
# Returns the global debug mode.
744+
def self.debug; config.debug end
747745

748-
# Sets the debug mode.
746+
# Sets the global debug mode.
749747
def self.debug=(val)
750-
return @@debug = val
748+
config.debug = val
751749
end
752750

753751
# The default port for IMAP connections, port 143

0 commit comments

Comments
 (0)