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
1 changed files with 2 additions and 3 deletions

View File

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