Filtering over f.src when the array length is 0 causes silent failure of this task.
Grunt already ensures that you only have access to existing files in this.files, so a simple simple check on the length of f.src is enough here to give useful feedback to a user.
Filtering over
f.src
when the array length is0
causes silent failure of this task.Grunt already ensures that you only have access to existing files in
this.files
, so a simple simple check on the length off.src
is enough here to give useful feedback to a user.