Browse Source

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

Signed-off-by: Jonathan <theflametrooper@gmail.com>
Jonathan 4 years ago
parent
commit
07138c31c8
1 changed files with 2 additions and 2 deletions
  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);
 };