fix: use Object.keys instead of Object.values for node 6 (#2487)

This commit is contained in:
bdistin
2018-04-20 14:11:27 -05:00
committed by SpaceEEC
parent ff671b2f3c
commit feb0991c46

View File

@@ -16,7 +16,8 @@ class RESTManager {
}
destroy() {
for (const handler of Object.values(this.handlers)) {
for (const handlerKey of Object.keys(this.handlers)) {
const handler = this.handlers[handlerKey];
if (handler.destroy) handler.destroy();
}
}