mirror of
https://github.com/OpenListTeam/OpenList.git
synced 2025-11-25 19:37:41 +08:00
fix(alias): nil panic in ResolveLinkCacheMode (#1527)
* fix(alias): Check the driver path during initialization * fix(alias): Don't check the driver path during initialization anymore.
This commit is contained in:
@@ -532,7 +532,7 @@ func (d *Alias) ResolveLinkCacheMode(path string) driver.LinkCacheMode {
|
|||||||
}
|
}
|
||||||
for _, dst := range dsts {
|
for _, dst := range dsts {
|
||||||
storage, actualPath, err := op.GetStorageAndActualPath(stdpath.Join(dst, sub))
|
storage, actualPath, err := op.GetStorageAndActualPath(stdpath.Join(dst, sub))
|
||||||
if err == nil {
|
if err != nil {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
mode := storage.Config().LinkCacheMode
|
mode := storage.Config().LinkCacheMode
|
||||||
|
|||||||
Reference in New Issue
Block a user