Skip to content

Commit 669cabc

Browse files
committed
📚 Fix broken example in README.md
`IMAP#list` returns an empty array (rather than `nil`), since v0.4.0.
1 parent 3e7ed21 commit 669cabc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ end
5050

5151
```ruby
5252
imap.select('Mail/sent-mail')
53-
if not imap.list('Mail/', 'sent-apr03')
53+
if imap.list('Mail/', 'sent-apr03').empty?
5454
imap.create('Mail/sent-apr03')
5555
end
5656
imap.search(["BEFORE", "30-Apr-2003", "SINCE", "1-Apr-2003"]).each do |message_id|

0 commit comments

Comments
 (0)