Merge pull request #685 from matthiasbeyer/rewrite-storeid-type-cleanup-libimagstorestdhook

libimagstorestdhook cleanup
This commit is contained in:
Matthias Beyer 2016-09-02 08:23:41 +02:00 committed by GitHub
commit c9990db634

View file

@ -53,11 +53,10 @@ impl NonMutableHookDataAccessor for LinkedEntriesExistHook {
let _ = fle.get_internal_links() let _ = fle.get_internal_links()
.map(|links| { .map(|links| {
for link in links { for link in links {
let path : PathBuf = link.into(); if !link.exists() {
if !path.exists() { warn!("File link does not exist: {:?} -> {:?}", fle.get_location(), link);
warn!("File link does not exist: {:?} -> {:?}", fle.get_location(), path); } else if !link.is_file() {
} else if !path.is_file() { warn!("File link is not a file: {:?} -> {:?}", fle.get_location(), link);
warn!("File link is not a file: {:?} -> {:?}", fle.get_location(), path);
} }
} }
}) })