Skip to content

Commit

Permalink
feat: remove log.error (#1643)
Browse files Browse the repository at this point in the history
Co-authored-by: sheepluo <[email protected]>
  • Loading branch information
chaishi and sheepluo authored Nov 9, 2023
1 parent 367ed22 commit d195290
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions js/upload/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,6 @@ export function uploadOneRequest(params: HandleUploadParams): Promise<UploadRequ
let response = (res.response || {}) as ResponseType;
if (isFunction(params.formatResponse)) {
response = params.formatResponse(response, { file: toUploadFiles[0], currentFiles: toUploadFiles });
if (response.status === 'success' && !response.files) {
log.error('Upload', 'formatResponse:: upload success `files` are missing');
} else if (!response.status) {
log.error('Upload', 'formatResponse: return value of `status` is missing');
}
}
if (res.status === 'fail') {
response.error = res.error || response.error;
Expand Down

0 comments on commit d195290

Please sign in to comment.