فهرست منبع

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);
 };