db/AuthorManager: early return, no functional changes

pull/3478/head
muxator 2018-08-29 02:28:35 +02:00
parent b59818676e
commit 2b8646a855
1 changed files with 8 additions and 8 deletions

View File

@ -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});
});
}