fix: only call registerDefaults when registry isn't init'ed
This commit is contained in:
parent
1f68b13180
commit
f99c51e4df
|
@ -33,10 +33,9 @@ export class Sdk {
|
|||
public protocols(): Registry {
|
||||
if (!this.registry) {
|
||||
this.registry = new Registry(this);
|
||||
registerDefaults(this.registry!);
|
||||
}
|
||||
|
||||
registerDefaults(this.registry!);
|
||||
|
||||
return this.registry!;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue