eslint fixes as well as fixing a small variable typo
This commit is contained in:
parent
23f753e4b3
commit
9eb3a1d37f
|
@ -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);
|
||||
|
|
|
@ -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');
|
||||
|
|
Loading…
Reference in New Issue