5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-24 07:26: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)
value = super(value)
value.select do |v|
values.values.include? v
end
value & values.values
end
end