diff --git a/src/book/book.rs b/src/book/book.rs index ae64b120..e3d87600 100644 --- a/src/book/book.rs +++ b/src/book/book.rs @@ -200,10 +200,7 @@ impl Chapter { /// Check if the chapter is a draft chapter, meaning it has no path to a source markdown file. pub fn is_draft_chapter(&self) -> bool { - match self.path { - Some(_) => false, - None => true, - } + self.path.is_none() } }