Переглянути джерело

aws-s3: remove redundant check

Brought up by @johnnyperkins in
https://github.com/transloadit/uppy/pull/2391#issuecomment-665329514,
thanks!
Renée Kooi 4 роки тому
батько
коміт
1e3bc43fbb
1 змінених файлів з 0 додано та 4 видалено
  1. 0 4
      packages/@uppy/aws-s3/src/isXml.js

+ 0 - 4
packages/@uppy/aws-s3/src/isXml.js

@@ -18,10 +18,6 @@ function removeMimeParameters (mimeType) {
 function isXml (content, xhr) {
   const rawContentType = (xhr.headers ? xhr.headers['content-type'] : xhr.getResponseHeader('Content-Type'))
 
-  if (rawContentType == null) {
-    return false
-  }
-
   if (typeof rawContentType === 'string') {
     const contentType = removeMimeParameters(rawContentType).toLowerCase()
     if (contentType === 'application/xml' || contentType === 'text/xml') {