mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +01:00
fix linting of migrations
This commit is contained in:
@@ -1,9 +1,7 @@
|
||||
|
||||
const logger = require('./logger');
|
||||
|
||||
class Timer {
|
||||
constructor (options) {
|
||||
options = options || {};
|
||||
constructor (options = {}) {
|
||||
const warningThreshold = options.minutesWarningThreshold || 10;
|
||||
|
||||
this.count = 0;
|
||||
@@ -14,7 +12,7 @@ class Timer {
|
||||
|
||||
start () {
|
||||
this._internalTimer = setInterval(() => {
|
||||
this.count++;
|
||||
this.count *= 1;
|
||||
|
||||
const shouldWarn = this._minutesWarningThreshold < this.count;
|
||||
const logStyle = shouldWarn ? 'error' : 'warn';
|
||||
|
||||
Reference in New Issue
Block a user