Kaynağa Gözat

Add explanatory comment

Simon Detheridge 6 yıl önce
ebeveyn
işleme
ffd002dc76
1 değiştirilmiş dosya ile 1 ekleme ve 0 silme
  1. 1 0
      services/filestore/app/js/FileController.js

+ 1 - 0
services/filestore/app/js/FileController.js

@@ -62,6 +62,7 @@ function getFile(req, res, next) {
 
     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)
   })
 }