lint: Fix straightforward ESLint errors

This commit is contained in:
Richard Hansen 2021-05-11 16:56:06 -04:00 committed by webzwo0i
parent 59c03bde20
commit 6f2f20233f
9 changed files with 57 additions and 67 deletions

View file

@ -135,7 +135,7 @@ exports.createAuthorIfNotExistsFor = async (authorMapper, name) => {
* @param {String} mapperkey The database key name for this mapper
* @param {String} mapper The mapper
*/
async function mapAuthorWithDBKey(mapperkey, mapper) {
const mapAuthorWithDBKey = async (mapperkey, mapper) => {
// try to map to an author
const author = await db.get(`${mapperkey}:${mapper}`);
@ -156,7 +156,7 @@ async function mapAuthorWithDBKey(mapperkey, mapper) {
// return the author
return {authorID: author};
}
};
/**
* Internal function that creates the database entry for an author