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

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

View File

@ -268,13 +268,13 @@ exports.getText = function(padID, rev, callback)
callback(null, data);
})
return;
}
//the client wants the latest text, lets return it to him
else
{
var padText = exportTxt.getTXTFromAtext(pad, pad.atext);
callback(null, {"text": padText});
}
var padText = exportTxt.getTXTFromAtext(pad, pad.atext);
callback(null, {"text": padText});
});
}