mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-26 09:24:07 +00:00
feature(pipe) create: init isFsWrite on start
This commit is contained in:
parent
aaf733eeda
commit
6b4049d257
1 changed files with 2 additions and 1 deletions
|
|
@ -25,7 +25,8 @@
|
|||
* @param callback - function(error) {}
|
||||
*/
|
||||
function create(read, write, options, callback) {
|
||||
var gzip, isFsWrite,
|
||||
var gzip,
|
||||
isFsWrite = write instanceof fs.WriteStream,
|
||||
isStrRead = type.string(read),
|
||||
isStrWrite = type.string(write),
|
||||
isFunc = type.function(options),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue