Fix linting

This commit is contained in:
Milan Steiner 2022-02-01 16:33:25 +01:00
parent 7af2c64732
commit 697e4d2fec

View File

@ -97,12 +97,12 @@ export class Registry {
*/
public constructor(customTypes?: Iterable<[string, GeneratedType]>) {
const { cosmosCoin, cosmosMsgSend } = defaultTypeUrls;
this.types = customTypes ? new Map<string, GeneratedType>([
...customTypes
]) : new Map<string, GeneratedType>([
[cosmosCoin, Coin],
[cosmosMsgSend, MsgSend],
]);
this.types = customTypes
? new Map<string, GeneratedType>([...customTypes])
: new Map<string, GeneratedType>([
[cosmosCoin, Coin],
[cosmosMsgSend, MsgSend],
]);
}
public register(typeUrl: string, type: GeneratedType): void {