Skip to content

async.done not being called if there are no input files. #1

Merged
merged 1 commit into from Mar 26, 2013

2 participants

@izb
izb commented Mar 26, 2013

I've added a call to async.done if the length of files is 0. This can happen in the case where there is a filter on the files based on modification date, e.g.

files:[{ expand:true,
cwd:"js/",
dest:"js.min/",
src:["*/.js"],
filter: function() {
/* return true here if source file is newer than the output file */
}
}]

@izb
izb commented on ea0ba09 Mar 26, 2013

Apologies, just noticed that my editor trimmed trailing spaces. I can put in a cleaner diff if you like.

@dcodeIO dcodeIO merged commit 96357e3 into dcodeIO:master Mar 26, 2013

1 check failed

Details default The Travis build could not complete due to an error
@dcodeIO
Owner
dcodeIO commented Mar 26, 2013

Thank you!

@dcodeIO dcodeIO was assigned Jul 9, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.