From 2b8646a855626283758a3e19ccdcd6a9a32f9d17 Mon Sep 17 00:00:00 2001 From: muxator Date: Wed, 29 Aug 2018 02:28:35 +0200 Subject: [PATCH] db/AuthorManager: early return, no functional changes --- src/node/db/AuthorManager.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/node/db/AuthorManager.js b/src/node/db/AuthorManager.js index 1f2a736be..5f48e19d8 100644 --- a/src/node/db/AuthorManager.js +++ b/src/node/db/AuthorManager.js @@ -104,16 +104,16 @@ function mapAuthorWithDBKey (mapperkey, mapper, callback) //return the author callback(null, author); }); - } - //there is a author with this mapper - else - { - //update the timestamp of this author - db.setSub("globalAuthor:" + author, ["timestamp"], new Date().getTime()); - //return the author - callback(null, {authorID: author}); + return; } + + //there is a author with this mapper + //update the timestamp of this author + db.setSub("globalAuthor:" + author, ["timestamp"], new Date().getTime()); + + //return the author + callback(null, {authorID: author}); }); }