Fixes & linting

This commit is contained in:
bumi 2019-09-17 18:30:19 +02:00
parent 13ed02e134
commit aba4a23104

View File

@ -27,7 +27,8 @@ class Contributor {
github_uid, github_uid,
github_username, github_username,
gitea_username, gitea_username,
wiki_username wiki_username,
zoom_name,
} = this; } = this;
let data = { let data = {
@ -70,7 +71,7 @@ class Contributor {
if (zoom_name) { if (zoom_name) {
data.accounts.push({ data.accounts.push({
'site': 'zoom.us', 'site': 'zoom.us',
'username': zoom_name 'username': zoom_name,
}); });
} }
@ -103,7 +104,7 @@ class Contributor {
accounts, accounts,
} = JSON.parse(serialized.toString('utf8')); } = JSON.parse(serialized.toString('utf8'));
let github_username, github_uid, gitea_username, wiki_username; let github_username, github_uid, gitea_username, wiki_username, zoom_name;
let github = accounts.find(a => a.site === 'github.com'); let github = accounts.find(a => a.site === 'github.com');
let gitea = accounts.find(a => a.site === 'gitea.kosmos.org'); let gitea = accounts.find(a => a.site === 'gitea.kosmos.org');
let wiki = accounts.find(a => a.site === 'wiki.kosmos.org'); let wiki = accounts.find(a => a.site === 'wiki.kosmos.org');