Merge pull request #259 from azerupi/incorrect-conditional
Fix incorrect conditional.
This commit is contained in:
commit
9b7a26effd
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue