Browse Source

Return `null` instead of `false` from getPlugin() if plugin is not found.

`null` is a slightly more accurate representation of absence.
Renée Kooi 7 years ago
parent
commit
ff8d6792cd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/core/Core.js

+ 1 - 1
src/core/Core.js

@@ -836,7 +836,7 @@ class Uppy {
    * @return {object | boolean}
    */
   getPlugin (name) {
-    let foundPlugin = false
+    let foundPlugin = null
     this.iteratePlugins((plugin) => {
       const pluginName = plugin.id
       if (pluginName === name) {