mirror of
https://github.com/chatmail/core.git
synced 2026-04-21 23:46:31 +03:00
using first() instead of [0]
This commit is contained in:
@@ -1105,8 +1105,8 @@ impl Imap {
|
||||
info!(context, "sentbox folder is {:?}", sentbox_folder);
|
||||
|
||||
let mut delimiter = ".";
|
||||
if !folders.is_empty() {
|
||||
if let Some(d) = &folders[0].delimiter() {
|
||||
if let Some(folder) = folders.first() {
|
||||
if let Some(d) = folder.delimiter() {
|
||||
if !d.is_empty() {
|
||||
delimiter = d;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user