From d59ee4e6791c5034cfdeac29069c61f2298e0de0 Mon Sep 17 00:00:00 2001 From: yuqiuw <72527514+yuqiuw@users.noreply.github.com> Date: Thu, 10 Jun 2021 11:36:31 -0500 Subject: [PATCH] Revert "fix lint" This reverts commit 377ac6a79ccb20c2e989cfbdd4cb2105e7c305e8. --- client/src/proto/proto.js | 2 +- client/src/utils/protoHelpers.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/proto/proto.js b/client/src/proto/proto.js index 4b1b420..37a3d49 100644 --- a/client/src/proto/proto.js +++ b/client/src/proto/proto.js @@ -1,4 +1,4 @@ -/*eslint-disable block-scoped-var, id-length, no-control-regex, no-magic-numbers, no-prototype-builtins, no-redeclare, no-shadow, no-var, sort-vars, no-mixed-operators, strict*/ +/*eslint-disable block-scoped-var, id-length, no-control-regex, no-magic-numbers, no-prototype-builtins, no-redeclare, no-shadow, no-var, sort-vars*/ "use strict"; var $protobuf = require("protobufjs/minimal"); diff --git a/client/src/utils/protoHelpers.ts b/client/src/utils/protoHelpers.ts index 17876ce..61d37d1 100644 --- a/client/src/utils/protoHelpers.ts +++ b/client/src/utils/protoHelpers.ts @@ -54,7 +54,7 @@ export function isProtoEnabled(): boolean { } export function isProtoEligible(url: string) { - for (let value of Object.values(kindMap)) { + for (let [key, value] of Object.entries(kindMap)) { if (url.includes(value.path)) { return true; }