Skip to content

Commit fb61046

Browse files
committed
✅ Fix backport compatibility with ruby 2.7
1 parent cdd11d8 commit fb61046

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/net/imap/response_reader.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def read_response_buffer
2828

2929
attr_reader :buff, :literal_size
3030

31-
def get_literal_size = /\{(\d+)\}\r\n\z/n =~ buff && $1.to_i
31+
def get_literal_size; /\{(\d+)\}\r\n\z/n =~ buff && $1.to_i end
3232

3333
def read_line
3434
buff << (@sock.gets(CRLF) or throw :eof)

0 commit comments

Comments
 (0)