db/API.js: early return, no functional changes

pull/3478/head
muxator 2018-08-29 01:57:28 +02:00
parent 4728736dd8
commit 30d814d8ed
1 changed files with 9 additions and 9 deletions

View File

@ -184,17 +184,17 @@ exports.getRevisionChangeset = function(padID, rev, callback)
callback(null, changeset);
})
}
//the client wants the latest changeset, lets return it to him
else
{
pad.getRevisionChangeset(pad.getHeadRevisionNumber(), function(err, changeset)
{
if(ERR(err, callback)) return;
callback(null, changeset);
})
return;
}
//the client wants the latest changeset, lets return it to him
pad.getRevisionChangeset(pad.getHeadRevisionNumber(), function(err, changeset)
{
if(ERR(err, callback)) return;
callback(null, changeset);
})
});
}