From 684bad51d3298b7bf2cc55463e1f05c1ce45e41f Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Thu, 27 Oct 2022 21:43:58 +0200 Subject: [PATCH] Remove unneeded type check in isEmptyObject(). MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- src/utils/Utils.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/utils/Utils.ts b/src/utils/Utils.ts index e2afc28a..f6231998 100644 --- a/src/utils/Utils.ts +++ b/src/utils/Utils.ts @@ -197,9 +197,6 @@ export default class Utils { } public static isEmptyObject(obj: object): boolean { - if (obj?.constructor !== Object) { - return false; - } // Iterates over the keys of an object, if // any exist, return false. for (const _ in obj) { -- 2.34.1