git ssb

0+

wanderer🌟 / js-dfinity-radix-tree



Commit dcae1fc8cba8d4106cc7d9bc05037d310f3ef37e

remove decode options

wanderer committed on 3/1/2018, 2:08:19 AM
Parent: 5057b9c897a27bf558aec85d00a0b2598324a088

Files changed

index.jschanged
index.jsView
@@ -29,21 +29,21 @@
2929 * creates a new instance of RadixTree that is the subTree of the given key
3030 * @param {*} key
3131 * @return {Promise} resolve to the new instance of RadixTree
3232 */
33- async getSubTree (key, decode) {
33 + async getSubTree (key) {
3434 key = this.formatKey(key)
3535 await this.done()
36- const {root} = await this._get(key, decode)
36 + const {root} = await this._get(key)
3737 return new RadixTree({dag: this.dag, root: {'/': root['/']}, appendKeyToRoot: true})
3838 }
3939
4040 /**
4141 * gets a value given a key
4242 * @param {*} key
4343 * @return {Promise}
4444 */
45- async get (key, decode) {
45 + async get (key) {
4646 key = this.formatKey(key)
4747 await this.done()
4848 const result = await this._get(key)
4949 return result.value

Built with git-ssb-web