diff options
author | Marek Kotewicz <marek.kotewicz@gmail.com> | 2015-01-26 23:41:00 +0800 |
---|---|---|
committer | Marek Kotewicz <marek.kotewicz@gmail.com> | 2015-01-26 23:41:00 +0800 |
commit | e5d294df327d817bbe66764fba596e77d2a66b7b (patch) | |
tree | d5a52d9c6cd5907dd92ce47d50c4ff1bfb6125e4 /lib | |
parent | d0b6f3663b70c325eb0d1474c3c5df51e53c2cee (diff) | |
download | dexon-e5d294df327d817bbe66764fba596e77d2a66b7b.tar.gz dexon-e5d294df327d817bbe66764fba596e77d2a66b7b.tar.zst dexon-e5d294df327d817bbe66764fba596e77d2a66b7b.zip |
return null instead of undefined, if not provider is set
Diffstat (limited to 'lib')
-rw-r--r-- | lib/providermanager.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/providermanager.js b/lib/providermanager.js index a00f444a1..025ade355 100644 --- a/lib/providermanager.js +++ b/lib/providermanager.js @@ -70,7 +70,7 @@ ProviderManager.prototype.send = function(data) { if (this.provider === undefined) { console.error('provider is not set'); - return undefined; + return null; } //TODO: handle error here? |