Temporary fix: Check whether an StoreId is an external link by str::contains()
This is a temporary fix as long as we do not have a clear model how we handle internal/external StoreId types
This commit is contained in:
parent
295374e1bd
commit
1dd40ca8b9
1 changed files with 1 additions and 1 deletions
|
@ -97,7 +97,7 @@ pub trait ExternalLinker : InternalLinker {
|
||||||
/// Check whether the StoreId starts with `/link/external/`
|
/// Check whether the StoreId starts with `/link/external/`
|
||||||
pub fn is_external_link_storeid(id: &StoreId) -> bool {
|
pub fn is_external_link_storeid(id: &StoreId) -> bool {
|
||||||
debug!("Checking whether this is a /link/external/*: '{:?}'", id);
|
debug!("Checking whether this is a /link/external/*: '{:?}'", id);
|
||||||
id.starts_with("/link/external/")
|
id.to_str().map(|s| s.contains("/link/external/")).unwrap_or(false)
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_external_link_from_file(entry: &FileLockEntry) -> Result<Url> {
|
fn get_external_link_from_file(entry: &FileLockEntry) -> Result<Url> {
|
||||||
|
|
Loading…
Reference in a new issue