Skip to content

Commit 9b7a26e

Browse files
authored
Merge pull request #259 from azerupi/incorrect-conditional
Fix incorrect conditional.
2 parents 607bf44 + 4f4120b commit 9b7a26e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/book/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ impl MDBook {
185185
BookItem::Chapter(_, ref ch) |
186186
BookItem::Affix(ref ch) => ch,
187187
};
188-
if ch.path.as_os_str().is_empty() {
188+
if !ch.path.as_os_str().is_empty() {
189189
let path = self.src.join(&ch.path);
190190

191191
if !path.exists() {

0 commit comments

Comments
 (0)