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
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
24b507623f
commit
d54c916efc
1 changed files with 1 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue