use function

This commit is contained in:
yggverse 2024-11-08 05:38:25 +02:00
parent 2d8b603b54
commit f66dfecc16

View File

@ -124,7 +124,7 @@ impl Reader {
buffer.insert(&mut buffer.end_iter(), "\n"); buffer.insert(&mut buffer.end_iter(), "\n");
// Update reader title using first gemtext header match // Update reader title using first gemtext header match
if title == None { if title.is_none() {
title = Some(header.value.clone()); title = Some(header.value.clone());
} }