Merge pull request #726 from matthiasbeyer/libimagstore/storeid-remove-is-file
Remove StoreId::is_file()
This commit is contained in:
commit
9f1faf764f
2 changed files with 0 additions and 6 deletions
|
@ -75,10 +75,6 @@ impl StoreId {
|
|||
self.clone().into_pathbuf().map(|pb| pb.exists()).unwrap_or(false)
|
||||
}
|
||||
|
||||
pub fn is_file(&self) -> bool {
|
||||
true
|
||||
}
|
||||
|
||||
pub fn to_str(&self) -> Result<String> {
|
||||
if self.base.is_some() {
|
||||
let mut base = self.base.as_ref().cloned().unwrap();
|
||||
|
|
|
@ -55,8 +55,6 @@ impl NonMutableHookDataAccessor for LinkedEntriesExistHook {
|
|||
for link in links {
|
||||
if !link.exists() {
|
||||
warn!("File link does not exist: {:?} -> {:?}", fle.get_location(), link);
|
||||
} else if !link.is_file() {
|
||||
warn!("File link is not a file: {:?} -> {:?}", fle.get_location(), link);
|
||||
}
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue