mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-24 04:56: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)
|
||||
value = super(value)
|
||||
|
||||
value.select do |v|
|
||||
values.values.include? v
|
||||
end
|
||||
value & values.values
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue