mirror of
https://github.com/OpenListTeam/OpenList.git
synced 2025-07-18 17:38:07 +08:00
@ -97,9 +97,9 @@ func (d *S3) Link(ctx context.Context, file model.Obj, args model.LinkArgs) (*mo
|
||||
input.ResponseContentDisposition = &disposition
|
||||
}
|
||||
|
||||
req, reqErr := d.linkClient.GetObjectRequest(input)
|
||||
if reqErr != nil {
|
||||
return nil, fmt.Errorf("failed to create GetObject request: %w", reqErr)
|
||||
req, _ := d.linkClient.GetObjectRequest(input)
|
||||
if req == nil {
|
||||
return nil, fmt.Errorf("failed to create GetObject request")
|
||||
}
|
||||
var link model.Link
|
||||
var err error
|
||||
|
Reference in New Issue
Block a user