Browse Source

core: remove unnecessary `instanceof` check

This function will never be an instance of the `Uppy` class.
Renée Kooi 7 years ago
parent
commit
dee1f69591
1 changed files with 1 additions and 3 deletions
  1. 1 3
      src/core/Core.js

+ 1 - 3
src/core/Core.js

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