소스 검색

core: remove unnecessary `instanceof` check

This function will never be an instance of the `Uppy` class.
Renée Kooi 7 년 전
부모
커밋
dee1f69591
1개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 3
      src/core/Core.js

+ 1 - 3
src/core/Core.js

@@ -950,7 +950,5 @@ class Uppy {
 }
 }
 
 
 module.exports = function (opts) {
 module.exports = function (opts) {
-  if (!(this instanceof Uppy)) {
-    return new Uppy(opts)
-  }
+  return new Uppy(opts)
 }
 }