Explorar el Código

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

Signed-off-by: Jonathan <theflametrooper@gmail.com>
Jonathan hace 4 años
padre
commit
07138c31c8
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  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);
 };