0
Fork 0
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:
Alex Kocharin 2014-09-03 16:20:05 +04:00
commit 697d5f0892

View file

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