Skip to content

Commit

Permalink
Update upload.go
Browse files Browse the repository at this point in the history
  • Loading branch information
Sakura-Byte committed Feb 15, 2025
1 parent da5ee11 commit ba5f675
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions backend/115/upload.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,18 +56,18 @@ func (f *Fs) getUploadBasicInfo(ctx context.Context) error {
return shouldRetry(ctx, resp, info, err)
})
if err != nil {
return
return err
}
if err = info.Err(); err != nil {
return
return fmt.Errorf("API Error: %s (%d)", info.Error, info.Errno)
}
userID := info.UserID.String()
if userID == "0" {
return errors.New("invalid user id")
}
f.userID = userID
f.userkey = info.Userkey
return
return nil
}

// bufferIO handles buffering of input streams based on size thresholds.
Expand Down

0 comments on commit ba5f675

Please sign in to comment.