Redefine return type of StoreId::exists()
This commit is contained in:
parent
e615ec040f
commit
d3af023166
1 changed files with 2 additions and 3 deletions
|
@ -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> {
|
||||||
|
|
Loading…
Reference in a new issue