fix: only call registerDefaults when registry isn't init'ed

This commit is contained in:
Derrick Hammer 2024-03-18 13:01:07 -04:00
parent 1f68b13180
commit f99c51e4df
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 2 deletions

View File

@ -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!;
}