Skip to content

Commit 6a5d38a

Browse files
committed
fix typos
1 parent 6073aee commit 6a5d38a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎utils/babeltrace_to_metababel_model.rb‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
}
2929

3030
# Not supported in the metababel model
31-
INGONRE_PROPERTIES = [
31+
IGNORE_PROPERTIES = [
3232
:be_class,
3333
]
3434

@@ -51,7 +51,7 @@ def translate_key_value(k, v)
5151
def get_element_field_class(element_field, parent_field)
5252
class_properties = element_field.delete(:class_properties)
5353
field_properties = (element_field.to_a + class_properties.to_a).filter_map do |k, v|
54-
translate_key_value(k, v) unless INGONRE_PROPERTIES.include?(k)
54+
translate_key_value(k, v) unless IGNORE_PROPERTIES.include?(k)
5555
end.to_h
5656

5757
if parent_field[:class] == 'array_dynamic'
@@ -69,7 +69,7 @@ def get_field_class_properties(field, member_name)
6969
class_properties = field.delete(:class_properties)
7070
field_element_field_class = field.key?(:field) ? get_element_field_class(field.delete(:field), field) : {}
7171
field_properties = (field.to_a + class_properties.to_a + field_element_field_class.to_a).filter_map do |k, v|
72-
translate_key_value(k, v) unless INGONRE_PROPERTIES.include?(k)
72+
translate_key_value(k, v) unless IGNORE_PROPERTIES.include?(k)
7373
end.to_h
7474
if field_properties[:type] == 'array_dynamic'
7575
field_properties[:length_field_path] =

0 commit comments

Comments
 (0)