mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-23 00:46:16 -04:00
db/API.js: early return, no functional changes
This commit is contained in:
parent
4728736dd8
commit
30d814d8ed
1 changed files with 9 additions and 9 deletions
|
@ -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);
|
||||
})
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue