@@ -2159,14 +2159,14 @@ export class CodeModelBuilder {
2159
2159
case "Model" :
2160
2160
if ( isArrayModelType ( this . program , type ) ) {
2161
2161
++ option . depth ;
2162
- if ( option . depth == 1 ) {
2162
+ if ( option . depth === 1 ) {
2163
2163
return this . getUnionVariantName ( type . indexer . value , option ) + "List" ;
2164
2164
} else {
2165
2165
return "ListOf" + this . getUnionVariantName ( type . indexer . value , option ) ;
2166
2166
}
2167
2167
} else if ( isRecordModelType ( this . program , type ) ) {
2168
2168
++ option . depth ;
2169
- if ( option . depth == 1 ) {
2169
+ if ( option . depth === 1 ) {
2170
2170
return this . getUnionVariantName ( type . indexer . value , option ) + "Map" ;
2171
2171
} else {
2172
2172
return "MapOf" + this . getUnionVariantName ( type . indexer . value , option ) ;
@@ -2483,7 +2483,7 @@ export class CodeModelBuilder {
2483
2483
schema . properties ?. forEach ( ( p ) => {
2484
2484
if ( p . readOnly && schemaUsage . usage ?. includes ( SchemaContext . Input ) ) {
2485
2485
const schemaUsageWithoutInput = {
2486
- usage : schemaUsage . usage . filter ( ( it ) => it != SchemaContext . Input ) ,
2486
+ usage : schemaUsage . usage . filter ( ( it ) => it !== SchemaContext . Input ) ,
2487
2487
serializationFormats : schemaUsage . serializationFormats ,
2488
2488
} ;
2489
2489
innerApplySchemaUsage ( p . schema , schemaUsageWithoutInput ) ;
0 commit comments