File tree Expand file tree Collapse file tree 2 files changed +8
-11
lines changed Expand file tree Collapse file tree 2 files changed +8
-11
lines changed Original file line number Diff line number Diff line change @@ -453,7 +453,7 @@ def get_attribute_by_key(attribute_key)
453
453
# Returns:
454
454
# Attribute corresponding to the provided attribute key.
455
455
attribute = @attribute_key_map [ attribute_key ]
456
- return attribute if @attribute_key_map . key? ( attribute_key )
456
+ return attribute if attribute
457
457
458
458
invalid_attribute_error = InvalidAttributeError . new ( attribute_key )
459
459
@logger . log Logger ::ERROR , invalid_attribute_error . message
@@ -470,7 +470,7 @@ def get_attribute_key_by_id(attribute_id)
470
470
# Returns:
471
471
# Attribute key corresponding to the provided attribute ID.
472
472
attribute = @attribute_id_to_key_map [ attribute_id ]
473
- return attribute if @attribute_id_to_key_map . key? ( attribute_id )
473
+ return attribute if attribute
474
474
475
475
invalid_attribute_error = InvalidAttributeError . new ( attribute_id )
476
476
@logger . log Logger ::ERROR , invalid_attribute_error . message
Original file line number Diff line number Diff line change @@ -309,15 +309,12 @@ module Constants
309
309
} ,
310
310
'cmab' => {
311
311
'type' => 'object' ,
312
- 'items' => {
313
- 'type' => 'object' ,
314
- 'properties' => {
315
- 'attributeIds' => {
316
- 'type' => 'array'
317
- } ,
318
- 'trafficAllocation' => {
319
- 'type' => 'integer'
320
- }
312
+ 'properties' => {
313
+ 'attributeIds' => {
314
+ 'type' => 'array'
315
+ } ,
316
+ 'trafficAllocation' => {
317
+ 'type' => 'integer'
321
318
}
322
319
}
323
320
}
You can’t perform that action at this time.
0 commit comments