mirror of
https://github.com/verdaccio/verdaccio.git
synced 2025-01-20 22:52:46 -05:00
Merge branch '0.9.x' of github.com:rlidwka/sinopia
This commit is contained in:
commit
697d5f0892
1 changed files with 5 additions and 2 deletions
|
@ -55,8 +55,11 @@ function write_stream(name) {
|
|||
function onend() {
|
||||
file.on('close', function() {
|
||||
fs.rename(tmpname, name, function(err) {
|
||||
if (err) stream.emit('error', err)
|
||||
stream.emit('success')
|
||||
if (err) {
|
||||
stream.emit('error', err)
|
||||
} else {
|
||||
stream.emit('success')
|
||||
}
|
||||
})
|
||||
})
|
||||
file.destroySoon()
|
||||
|
|
Loading…
Add table
Reference in a new issue