mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
fix(put) patchFiles: write(name, error) -> onWrite(error)
This commit is contained in:
parent
d75fb18b62
commit
25ae0ed3dd
1 changed files with 2 additions and 2 deletions
|
|
@ -84,7 +84,7 @@
|
|||
});
|
||||
|
||||
if (diffResult && !error)
|
||||
fs.writeFile(name, diffResult, write);
|
||||
fs.writeFile(name, diffResult, onWrite);
|
||||
else {
|
||||
msg = CloudFunc.formatMsg('patch', baseName, 'fail');
|
||||
func(null, msg);
|
||||
|
|
@ -92,7 +92,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
function write(name, error) {
|
||||
function onWrite(error) {
|
||||
var msg,
|
||||
baseName = path.basename(name);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue