1
0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-02-21 07:29:37 +01:00

Merge branch '0.9.x' of github.com:rlidwka/sinopia

This commit is contained in:
Alex Kocharin 2014-09-03 16:20:05 +04:00
commit 697d5f0892

@ -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()