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 @@ -1522,14 +1522,12 @@ export class Snapshot extends EventEmitter {
15221522 Object . keys ( typeMap ) . forEach ( param => {
15231523 const type = typeMap [ param ] ;
15241524 const typeObject = codec . createTypeObject ( type ) ;
1525- if ( type . child ) {
1526- if (
1525+ if (
1526+ ( type . child &&
15271527 typeObject . code === 'ARRAY' &&
1528- typeObject . arrayElementType ?. code !== 'TYPE_CODE_UNSPECIFIED'
1529- ) {
1530- paramTypes [ param ] = codec . createTypeObject ( type ) ;
1531- }
1532- } else if ( typeObject . code !== 'TYPE_CODE_UNSPECIFIED' ) {
1528+ typeObject . arrayElementType ?. code !== 'TYPE_CODE_UNSPECIFIED' ) ||
1529+ ( ! type . child && typeObject . code !== 'TYPE_CODE_UNSPECIFIED' )
1530+ ) {
15331531 paramTypes [ param ] = codec . createTypeObject ( type ) ;
15341532 }
15351533 } ) ;
You can’t perform that action at this time.
0 commit comments