1
0
mirror of https://github.com/oceanprotocol-archive/squid-js.git synced 2024-02-02 15:31:51 +01:00

better handling of default values

This commit is contained in:
Bill Barman 2018-11-22 18:53:18 +08:00
parent fc119f8413
commit 41613e5131

View File

@ -31,7 +31,7 @@ export default class DIDResolver {
public async resolve(did: string, maxHopCount?: number): Promise<DIDResolved> {
maxHopCount = maxHopCount === undefined ? 0 : maxHopCount
maxHopCount = maxHopCount ? maxHopCount : 0
let didId = DIDTools.didToId(did)
const resolved = new DIDResolved()