File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed
Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -1729,14 +1729,12 @@ export class Snapshot extends EventEmitter {
17291729 Object . keys ( typeMap ) . forEach ( param => {
17301730 const type = typeMap [ param ] ;
17311731 const typeObject = codec . createTypeObject ( type ) ;
1732- if ( type . child ) {
1733- if (
1732+ if (
1733+ ( type . child &&
17341734 typeObject . code === 'ARRAY' &&
1735- typeObject . arrayElementType ?. code !== 'TYPE_CODE_UNSPECIFIED'
1736- ) {
1737- paramTypes [ param ] = codec . createTypeObject ( type ) ;
1738- }
1739- } else if ( typeObject . code !== 'TYPE_CODE_UNSPECIFIED' ) {
1735+ typeObject . arrayElementType ?. code !== 'TYPE_CODE_UNSPECIFIED' ) ||
1736+ ( ! type . child && typeObject . code !== 'TYPE_CODE_UNSPECIFIED' )
1737+ ) {
17401738 paramTypes [ param ] = codec . createTypeObject ( type ) ;
17411739 }
17421740 } ) ;
You can’t perform that action at this time.
0 commit comments