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)
|
||||
}
|
||||
|
||||
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> {
|
||||
|
|
Loading…
Reference in a new issue