mirror of
https://github.com/koajs/examples.git
synced 2026-01-25 14:48:15 +00:00
be more specific with the comments
This commit is contained in:
parent
e3d3602c97
commit
3d830f699b
@ -25,7 +25,7 @@ app.use(function *(){
|
||||
while (part = yield parts) {
|
||||
// save each part to a file,
|
||||
// but do it in a different channel
|
||||
// so we don't block
|
||||
// so we don't block this particular while loop.
|
||||
saveTo(part, path.join(tmpdir, part.filename), ch.push());
|
||||
}
|
||||
|
||||
@ -36,7 +36,7 @@ app.use(function *(){
|
||||
files.push(file)
|
||||
}
|
||||
|
||||
// return the files
|
||||
// return the array of filenames
|
||||
this.body = files;
|
||||
})
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user