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:
parent
fc119f8413
commit
41613e5131
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user