Skip to content

Commit 8f18e34

Browse files
authored
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.
1 parent 525f26d commit 8f18e34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/alias/driver.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ func (d *Alias) ResolveLinkCacheMode(path string) driver.LinkCacheMode {
532532
}
533533
for _, dst := range dsts {
534534
storage, actualPath, err := op.GetStorageAndActualPath(stdpath.Join(dst, sub))
535-
if err == nil {
535+
if err != nil {
536536
continue
537537
}
538538
mode := storage.Config().LinkCacheMode

0 commit comments

Comments
 (0)