@@ -841,8 +841,7 @@ export function serializeInto(
841
841
} else if ( value [ '_bsontype' ] === 'MinKey' || value [ '_bsontype' ] === 'MaxKey' ) {
842
842
index = serializeMinMax ( buffer , key , value , index , true ) ;
843
843
} else if ( typeof value [ '_bsontype' ] !== 'undefined' ) {
844
- // eslint-disable-next-line @typescript-eslint/restrict-plus-operands
845
- throw new BSONTypeError ( 'Unrecognized or invalid _bsontype: ' + value [ '_bsontype' ] ) ;
844
+ throw new BSONTypeError ( `Unrecognized or invalid _bsontype: ${ String ( value [ '_bsontype' ] ) } ` ) ;
846
845
}
847
846
}
848
847
} else if ( object instanceof Map || isMap ( object ) ) {
@@ -943,8 +942,7 @@ export function serializeInto(
943
942
} else if ( value [ '_bsontype' ] === 'MinKey' || value [ '_bsontype' ] === 'MaxKey' ) {
944
943
index = serializeMinMax ( buffer , key , value , index ) ;
945
944
} else if ( typeof value [ '_bsontype' ] !== 'undefined' ) {
946
- // eslint-disable-next-line @typescript-eslint/restrict-plus-operands
947
- throw new BSONTypeError ( 'Unrecognized or invalid _bsontype: ' + value [ '_bsontype' ] ) ;
945
+ throw new BSONTypeError ( `Unrecognized or invalid _bsontype: ${ String ( value [ '_bsontype' ] ) } ` ) ;
948
946
}
949
947
}
950
948
} else {
@@ -1049,8 +1047,7 @@ export function serializeInto(
1049
1047
} else if ( value [ '_bsontype' ] === 'MinKey' || value [ '_bsontype' ] === 'MaxKey' ) {
1050
1048
index = serializeMinMax ( buffer , key , value , index ) ;
1051
1049
} else if ( typeof value [ '_bsontype' ] !== 'undefined' ) {
1052
- // eslint-disable-next-line @typescript-eslint/restrict-plus-operands
1053
- throw new BSONTypeError ( 'Unrecognized or invalid _bsontype: ' + value [ '_bsontype' ] ) ;
1050
+ throw new BSONTypeError ( `Unrecognized or invalid _bsontype: ${ String ( value [ '_bsontype' ] ) } ` ) ;
1054
1051
}
1055
1052
}
1056
1053
}
0 commit comments