From 1d45a63864a7d1a7f71f5541b003de522873a6ab Mon Sep 17 00:00:00 2001 From: muxator Date: Wed, 29 Aug 2018 01:57:00 +0200 Subject: [PATCH] db/API.js: early return, no functional changes --- src/node/db/API.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/node/db/API.js b/src/node/db/API.js index 8c8e515cd..7c6b95117 100644 --- a/src/node/db/API.js +++ b/src/node/db/API.js @@ -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}); }); }