Commit dcae1fc8cba8d4106cc7d9bc05037d310f3ef37e
remove decode options
wanderer committed on 3/1/2018, 2:08:19 AMParent: 5057b9c897a27bf558aec85d00a0b2598324a088
Files changed
index.js | changed |
index.js | |||
---|---|---|---|
@@ -29,21 +29,21 @@ | |||
29 | 29 … | * creates a new instance of RadixTree that is the subTree of the given key | |
30 | 30 … | * @param {*} key | |
31 | 31 … | * @return {Promise} resolve to the new instance of RadixTree | |
32 | 32 … | */ | |
33 | - async getSubTree (key, decode) { | ||
33 … | + async getSubTree (key) { | ||
34 | 34 … | key = this.formatKey(key) | |
35 | 35 … | await this.done() | |
36 | - const {root} = await this._get(key, decode) | ||
36 … | + const {root} = await this._get(key) | ||
37 | 37 … | return new RadixTree({dag: this.dag, root: {'/': root['/']}, appendKeyToRoot: true}) | |
38 | 38 … | } | |
39 | 39 … | ||
40 | 40 … | /** | |
41 | 41 … | * gets a value given a key | |
42 | 42 … | * @param {*} key | |
43 | 43 … | * @return {Promise} | |
44 | 44 … | */ | |
45 | - async get (key, decode) { | ||
45 … | + async get (key) { | ||
46 | 46 … | key = this.formatKey(key) | |
47 | 47 … | await this.done() | |
48 | 48 … | const result = await this._get(key) | |
49 | 49 … | return result.value |
Built with git-ssb-web