From 4f4120b5a400f13f8162b4266be4a06e6fae5262 Mon Sep 17 00:00:00 2001 From: Corey Farwell Date: Thu, 27 Apr 2017 09:16:19 -0400 Subject: [PATCH] Fix incorrect conditional. I accidentally introduced this in https://github.com/azerupi/mdBook/pull/254/commits/4525810737b678e00c23f26c218db5426df0d714. --- src/book/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/book/mod.rs b/src/book/mod.rs index d2c5ae4e..85d20a79 100644 --- a/src/book/mod.rs +++ b/src/book/mod.rs @@ -185,7 +185,7 @@ impl MDBook { BookItem::Chapter(_, ref ch) | BookItem::Affix(ref ch) => ch, }; - if ch.path.as_os_str().is_empty() { + if !ch.path.as_os_str().is_empty() { let path = self.src.join(&ch.path); if !path.exists() {