Fix remote storage validation

This commit is contained in:
wltsmrz
2014-03-03 13:20:47 -08:00
parent 815eed427f
commit 70d28fc15e

View File

@@ -197,7 +197,7 @@ function Remote(opts, trace) {
throw new TypeError('Remote "ping" configuration is not a Number');
}
if (!/^(undefined|number)$/.test(typeof opts.storage)) {
if (!/^(undefined|object)$/.test(typeof opts.storage)) {
throw new TypeError('Remote "storage" configuration is not an Object');
}