5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-24 09:36:21 +00:00

refactor: usar la intersección de las arrays para sanitizar
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
f 2023-10-06 17:02:30 -03:00
parent 24b507623f
commit d54c916efc
No known key found for this signature in database

View file

@ -23,8 +23,6 @@ class MetadataPredefinedArray < MetadataArray
def sanitize(value) def sanitize(value)
value = super(value) value = super(value)
value.select do |v| value & values.values
values.values.include? v
end
end end
end end