fix(alias): panic on nil pointer (close #4093)

This commit is contained in:
Andy Hsu
2023-04-09 14:06:04 +08:00
parent c77eebb035
commit c0a6beecea
2 changed files with 9 additions and 6 deletions

View File

@ -83,7 +83,7 @@ func (d *Alias) list(ctx context.Context, dst, sub string) ([]model.Obj, error)
func (d *Alias) link(ctx context.Context, dst, sub string, args model.LinkArgs) (*model.Link, error) {
reqPath := stdpath.Join(dst, sub)
storage, err := fs.GetStorage(reqPath, &fs.GetStoragesArgs{NoLog: true})
storage, err := fs.GetStorage(reqPath, &fs.GetStoragesArgs{})
if err != nil {
return nil, err
}