We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b33529 commit f3e6bf1Copy full SHA for f3e6bf1
src/config/set.js
@@ -12,9 +12,7 @@ module.exports = (send) => {
12
return callback(new Error('Invalid key type'))
13
}
14
15
- if (typeof value !== 'object' &&
16
- typeof value !== 'boolean' &&
17
- typeof value !== 'string') {
+ if (value === undefined || Buffer.isBuffer(value)) {
18
return callback(new Error('Invalid value type'))
19
20
0 commit comments