Skip to content

Commit

Permalink
Update driver.go
Browse files Browse the repository at this point in the history
  • Loading branch information
zengge99 authored Jun 17, 2024
1 parent b010584 commit 4040990
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/quark_share/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func (d *QuarkShare) GetAddition() driver.Additional {
func (d *QuarkShare) Init(ctx context.Context) error {
_, err := d.request("/config", http.MethodGet, nil, nil)
d.getStoken()
linkMap = make(map[string]*model.Link)
d.linkMap = make(map[string]*model.Link)
return err
}

Expand All @@ -63,7 +63,7 @@ func (d *QuarkShare) Link(ctx context.Context, file model.Obj, args model.LinkAr
fid := d.save(file)
link, err := d.link(file, fid)
if err == nil {
linkMap[file.GetID()] = link
d.linkMap[file.GetID()] = link
}
d.delete(fid)
return link, err
Expand Down

0 comments on commit 4040990

Please sign in to comment.