Переглянути джерело

fix(backend): fix issue from eslint suggestion with incorrect context of 'this'

Signed-off-by: Jonathan <theflametrooper@gmail.com>
Jonathan 4 роки тому
батько
коміт
07138c31c8
1 змінених файлів з 2 додано та 2 видалено
  1. 2 2
      backend/index.js

+ 2 - 2
backend/index.js

@@ -3,8 +3,8 @@ import "./loadEnvVariables.js";
 import util from "util";
 import config from "config";
 
-// eslint-disable-next-line no-extend-native
-Array.prototype.remove = item => {
+// eslint-disable-next-line
+Array.prototype.remove = function (item) {
 	this.splice(this.indexOf(item), 1);
 };