Skip to content

Commit f5d0f3c

Browse files
committed
1 parent eefa448 commit f5d0f3c

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/book/book.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -199,10 +199,7 @@ impl Chapter {
199199

200200
/// Check if the chapter is a draft chapter, meaning it has no path to a source markdown file.
201201
pub fn is_draft_chapter(&self) -> bool {
202-
match self.path {
203-
Some(_) => false,
204-
None => true,
205-
}
202+
self.path.is_none()
206203
}
207204
}
208205

0 commit comments

Comments
 (0)