ldb: minor.

This commit is contained in:
Christopher Jeffrey 2016-05-15 21:29:15 -07:00
parent e648bfb9f5
commit 39db4e065b
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD
2 changed files with 4 additions and 4 deletions

View File

@ -507,11 +507,11 @@ BST.prototype.iterator = function iterator(options) {
/**
* Get a database property (leveldown method) (NOP).
* @param {String} name - Property name.
* @returns {String?}
* @returns {String}
*/
BST.prototype.getProperty = function getProperty(name) {
return null;
return '';
};
/**

View File

@ -164,14 +164,14 @@ LowlevelUp.prototype.iterator = function iterator(options) {
/**
* Get a database property.
* @param {String} name - Property name.
* @returns {String?}
* @returns {String}
*/
LowlevelUp.prototype.getProperty = function getProperty(name) {
assert(this.loaded, 'Cannot use database before it is loaded.');
if (!this.binding.getProperty)
return null;
return '';
return this.binding.getProperty(name);
};