Commit ba3a6a66 authored by ZeHiro's avatar ZeHiro
Browse files

Fix lint error following upgrade of eslint dependencies

parent 5e56a7ca
......@@ -9,8 +9,7 @@ import { makeLogger, translate as $t, currency } from '../helpers';
let log = makeLogger('alert-manager');
class AlertManager
{
class AlertManager {
wrapContent(content) {
return `${$t('server.email.hello')}
......
......@@ -12,8 +12,7 @@ import Config from '../models/config';
let log = makeLogger('emailer');
class Emailer
{
class Emailer {
createTransport(config) {
config.direct = false;
config.pool = false;
......
......@@ -2,8 +2,7 @@ import { makeLogger } from '../helpers';
let log = makeLogger('notifications');
class Notifier
{
class Notifier {
constructor() {
if (process.kresus.standalone) {
log.warn('Notification module in standalone mode is NYI.');
......
......@@ -26,8 +26,7 @@ let log = makeLogger('poller');
const WAKEUP_INTERVAL = 20 * 60 * 1000;
class Poller
{
class Poller {
constructor() {
this.runTimeout = null;
this.run = this.run.bind(this);
......
......@@ -25,8 +25,7 @@ let log = makeLogger('report-manager');
const MIN_DURATION_BETWEEN_REPORTS = (24 + POLLER_START_LOW_HOUR - POLLER_START_HIGH_HOUR) *
60 * 60 * 1000;
class ReportManager
{
class ReportManager {
async sendReport(subject, content) {
await Emailer.sendToUser({
subject,
......
// This modules mocks output generated by weboob.
import moment from 'moment' ;
import moment from 'moment';
import { makeLogger, KError } from '../../helpers';
import errors from '../../shared/errors.json';
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment