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

This commit is contained in:
muxator 2018-08-29 01:57:00 +02:00
parent 30d814d8ed
commit 1d45a63864

View file

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