Remove undescore

A 50 kb library is not needed to make a function run once, especially
not when it doesn't work.  _.once does not modify the function passed to
it to only run once it returns a new function that only runs once.
Since the result of once was discarded, it had no effect.

Remove underscore and implement instanceManagement running once properly
with 3 lines of code.
This commit is contained in:
Hornwitser committed 2019-08-07 10:18:14 +02:00
1 parent ca0281ae58
commit 66c0238a3d
2 files changed
+5 -4

No files matched your search

+1 -2
View File
@@ -63,8 +63,7 @@
"socket.io-prometheus": "^0.2.1",
"sync-request": "^4.0.1",
"tail": "^2.0.2",
"typescript-collections": "^1.3.2",
"underscore": "^1.8.3"
"typescript-collections": "^1.3.2"
},
"devDependencies": {
"html5-validator": "^1.0.7",