Jelajahi Sumber

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

Signed-off-by: Jonathan <theflametrooper@gmail.com>
Jonathan 4 tahun lalu
induk
melakukan
07138c31c8
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  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);
 };