Skip to content

Commit

Permalink
@uppy/aws-s3: remove console.error (#5607)
Browse files Browse the repository at this point in the history
Update HTTPCommunicationQueue.ts

#5602 (comment)
  • Loading branch information
mifi authored Jan 17, 2025
1 parent 0e2bdfd commit efec237
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions packages/@uppy/aws-s3/src/HTTPCommunicationQueue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -276,12 +276,9 @@ export class HTTPCommunicationQueue<M extends Meta, B extends Body> {
signal,
}).abortOn(signal)) as unknown as B // todo this doesn't make sense

// Note: `fields.key` is not returned by old Companion versions.
// See https://github.com/transloadit/uppy/pull/5602
const key = fields?.key
if (!key) {
console.error(
'Expected `fields.key` to be returend but the backend/Companion',
)
}
this.#setS3MultipartState(file, { key: key! })

return {
Expand Down

0 comments on commit efec237

Please sign in to comment.