Add explanatory comment

This commit is contained in:
Simon Detheridge 2020-01-06 15:47:46 +00:00
parent b642b3cf3a
commit ffd002dc76

View file

@ -62,6 +62,7 @@ function getFile(req, res, next) {
logger.log({ key, bucket, format, style }, 'sending file to response') logger.log({ key, bucket, format, style }, 'sending file to response')
// pass 'next' as a callback to 'pipeline' to receive any errors
pipeline(fileStream, res, next) pipeline(fileStream, res, next)
}) })
} }