@@ -424,7 +424,7 @@ export abstract class Deserializer extends Serde {
424
424
previous = version
425
425
}
426
426
if ( migrationMode === RuleMode . DOWNGRADE ) {
427
- migrations = migrations . map ( x => x ) . reverse ( )
427
+ migrations = migrations . reverse ( )
428
428
}
429
429
return migrations
430
430
}
@@ -512,16 +512,15 @@ export class RuleContext {
512
512
513
513
getParameter ( name : string ) : string | null {
514
514
const params = this . rule . params
515
- if ( params == null ) {
516
- return null
517
- }
518
- let value = params [ name ]
519
- if ( value != null ) {
520
- return value
515
+ if ( params != null ) {
516
+ let value = params [ name ]
517
+ if ( value != null ) {
518
+ return value
519
+ }
521
520
}
522
521
let metadata = this . target . metadata
523
522
if ( metadata != null && metadata . properties != null ) {
524
- value = metadata . properties [ name ]
523
+ let value = metadata . properties [ name ]
525
524
if ( value != null ) {
526
525
return value
527
526
}
@@ -545,8 +544,9 @@ export class RuleContext {
545
544
return this . fieldContexts [ size - 1 ]
546
545
}
547
546
548
- enterField ( containingMessage : any , fullName : string , name : string , fieldType : FieldType , tags : Set < string > ) : FieldContext {
549
- let allTags = new Set < string > ( tags )
547
+ enterField ( containingMessage : any , fullName : string , name : string , fieldType : FieldType ,
548
+ tags : Set < string > | null ) : FieldContext {
549
+ let allTags = new Set < string > ( tags ?? this . getInlineTags ( fullName ) )
550
550
for ( let v of this . getTags ( fullName ) ) {
551
551
allTags . add ( v )
552
552
}
0 commit comments