mirror of
https://github.com/rust-lang/mdBook
synced 2024-12-13 22:32:35 +00:00
Rewrite an emptiness check.
This commit is contained in:
parent
5d72d966ad
commit
4525810737
1 changed files with 1 additions and 1 deletions
|
@ -185,7 +185,7 @@ impl MDBook {
|
||||||
BookItem::Chapter(_, ref ch) |
|
BookItem::Chapter(_, ref ch) |
|
||||||
BookItem::Affix(ref ch) => ch,
|
BookItem::Affix(ref ch) => ch,
|
||||||
};
|
};
|
||||||
if ch.path != PathBuf::new() {
|
if ch.path.as_os_str().is_empty() {
|
||||||
let path = self.src.join(&ch.path);
|
let path = self.src.join(&ch.path);
|
||||||
|
|
||||||
if !path.exists() {
|
if !path.exists() {
|
||||||
|
|
Loading…
Reference in a new issue