mirror of
https://github.com/Stone-Red-Code/website.git
synced 2026-09-04 09:15:58 +02:00
chore(lint): small clean up of lint errors wip on #312
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
/* globals module */
|
||||
const DEFAULT_AVATAR_MODULO = 5
|
||||
|
||||
module.exports = {
|
||||
findMarkdownLink(absolutePath) {
|
||||
// We're assuming this path isn't going to change
|
||||
@@ -28,7 +30,7 @@ module.exports = {
|
||||
return `https://cdn.discordapp.com/embed/avatars/${avatar}.png`
|
||||
},
|
||||
resolveAuthor(users, author) {
|
||||
const target = users.find(user => user.identifier === author)
|
||||
const target = users.find((user) => user.identifier === author)
|
||||
const [name, hash] = this.splitHash(author)
|
||||
const avatar = target ? target.avatar : this.getDefaultAvatar(hash)
|
||||
|
||||
@@ -39,6 +41,6 @@ module.exports = {
|
||||
}
|
||||
},
|
||||
resolveAuthors(users, authors) {
|
||||
return authors.map(author => this.resolveAuthor(users, author))
|
||||
return authors.map((author) => this.resolveAuthor(users, author))
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user