Redefine return type of StoreId::exists()

This commit is contained in:
Matthias Beyer 2017-02-26 20:00:45 +01:00
parent e615ec040f
commit d3af023166

View file

@ -95,9 +95,8 @@ impl StoreId {
Ok(base) Ok(base)
} }
pub fn exists(&self) -> bool { pub fn exists(&self) -> Result<bool> {
// TODO: hiding error here. self.clone().into_pathbuf().map(|pb| pb.exists())
self.clone().into_pathbuf().map(|pb| pb.exists()).unwrap_or(false)
} }
pub fn to_str(&self) -> Result<String> { pub fn to_str(&self) -> Result<String> {