mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-22 00:16:15 -04:00
lint: Fix straightforward ESLint errors
This commit is contained in:
parent
59c03bde20
commit
6f2f20233f
9 changed files with 57 additions and 67 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue