Skip to content
This repository has been archived by the owner on Jan 19, 2021. It is now read-only.

Commit

Permalink
Fix syntax for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alextsg committed Dec 8, 2018
1 parent 1011e1a commit c2da4c3
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/baseTrie.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,16 @@ module.exports = class Trie {
})

this.root = root

/**
* Writes a value directly to the underlining db
* @method putRaw
* @memberof Trie
* @param {Buffer|String} key The key as a `Buffer` or `String`
* @param {Buffer} value The value to be stored
* @param {Function} callback A callback `Function`, which is given the argument `err` - for errors that may have occured
*/
this.putRaw = this._putRaw
}

/**
Expand Down Expand Up @@ -189,16 +199,6 @@ module.exports = class Trie {
async.each(this._putDBs, dbPut, cb)
}

/**
* Writes a value directly to the underlining db
* @method putRaw
* @memberof Trie
* @param {Buffer|String} key The key as a `Buffer` or `String`
* @param {Buffer} value The value to be stored
* @param {Function} callback A callback `Function`, which is given the argument `err` - for errors that may have occured
*/
putRaw = this._putRaw

/**
* Removes a raw value in the underlying db
* @method delRaw
Expand All @@ -217,7 +217,7 @@ module.exports = class Trie {
}

// writes a single node to dbs
_putNode = function (node, cb) {
_putNode (node, cb) {
const hash = node.hash()
const serialized = node.serialize()
this._putRaw(hash, serialized, cb)
Expand Down

0 comments on commit c2da4c3

Please sign in to comment.