eslint fixes as well as fixing a small variable typo

This commit is contained in:
Nathan Byrd 2023-01-07 13:40:52 -06:00
parent 23f753e4b3
commit 9eb3a1d37f
2 changed files with 211 additions and 215 deletions

View File

@ -8,12 +8,10 @@ const {
DefaultProfileTemplate,
} = require('../../../activitypub_util');
const UserProps = require('../../../user_property');
const { Errors } = require('../../../enig_error');
const Config = require('../../../config').get;
// deps
const _ = require('lodash');
const { trim } = require('lodash');
const enigma_assert = require('../../../enigma_assert');
exports.moduleInfo = {
@ -59,7 +57,7 @@ exports.getModule = class ActivityPubWebHandler extends WebHandlerModule {
userFromAccount(accountName, (err, user) => {
if (err) {
this.log.info(
{ reason: error.message, accountName: accountName },
{ reason: err.message, accountName: accountName },
`No user "${accountName}" for "self"`
);
return this._notFound(resp);

View File

@ -29,8 +29,6 @@ exports.getModule = class WebFingerWebHandler extends WebHandlerModule {
}
init(webServer, cb) {
const config = Config();
// we rely on the web server
this.webServer = webServer;
enigma_assert(webServer, 'WebFinger Web Handler init without webServer');