Skip to content
Commit 66f2b155 authored by Daniel Calviño Sánchez's avatar Daniel Calviño Sánchez
Browse files

Fix empty mime type filter



When the mime type is an empty array no filter should be applied.
However, the filter was loosely compared to an empty array, but as
arrays are objects then it became an implicit strict equality comparison
which always failed due to being different objects. Now the length of
the array is compared instead, and also moved outside the loop as it is
not needed to check it for each file.

Signed-off-by: default avatarDaniel Calviño Sánchez <danxuliu@gmail.com>
parent 4508a121
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment