I think the most elegant way to do this would be
(files.length === 1 ? copy_files() : report_bad_file_count()).done();
since it uses standard language constructs instead of trying to make Q do the work.
--
You received this message because you are subscribed to the Google Groups "Q Continuum (JavaScript)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
q-continuum...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I think the most elegant way to do this would be(files.length === 1 ? copy_files() : report_bad_file_count()).done();since it uses standard language constructs instead of trying to make Q do the work.