From 71b8eaf0855cb0008e9b6d04ad6a056a450d7fcd Mon Sep 17 00:00:00 2001 From: Felix Rieseberg Date: Mon, 20 Nov 2017 09:40:47 -0800 Subject: [PATCH] =?UTF-8?q?:wrench:=20Don=E2=80=99t=20use=20deprecated=20u?= =?UTF-8?q?til.is*=20methods?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/common/asar.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/common/asar.js b/lib/common/asar.js index e30199812d8..80f154a3a49 100644 --- a/lib/common/asar.js +++ b/lib/common/asar.js @@ -460,7 +460,7 @@ options = { encoding: null } - } else if (util.isString(options)) { + } else if (typeof options === 'string') { options = { encoding: options } @@ -468,7 +468,7 @@ options = { encoding: null } - } else if (!util.isObject(options)) { + } else if (typeof options !== 'object') { throw new TypeError('Bad arguments') } const {encoding} = options @@ -531,11 +531,11 @@ options = { encoding: null } - } else if (util.isString(options)) { + } else if (typeof options === 'string') { options = { encoding: options } - } else if (!util.isObject(options)) { + } else if (typeof options !== 'object') { throw new TypeError('Bad arguments') } const {encoding} = options