From 4a087cb37eb2ed8e19bfd70cc821339783dfeed5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ali=20R=C4=B1za=20Kat?= Date: Mon, 4 Nov 2024 16:14:27 +0300 Subject: [PATCH] Lint fixes --- lib/countly.js | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/lib/countly.js b/lib/countly.js index 6cbed26..485d8b1 100644 --- a/lib/countly.js +++ b/lib/countly.js @@ -631,17 +631,18 @@ Countly.Bulk = Bulk; * Changes the current device ID according to the device ID type (the preffered method) * @param {string} newId - new user/device ID to use. Must be a non-empty string value. Invalid values (like null, empty string or undefined) will be rejected * */ - Countly.set_id = function (newId) { - cc.log(cc.logLevelEnums.INFO, "set_id, Changing the device ID to:[" + newId + "]"); - if (newId == null || newId === "") { + Countly.set_id = function(newId) { + cc.log(cc.logLevelEnums.INFO, `set_id, Changing the device ID to: [${newId}]`); + if (newId === null || newId === "") { cc.log(cc.logLevelEnums.WARNING, "set_id, The provided device is not a valid ID"); return; } if (Countly.deviceIdType === cc.deviceIdTypeEnums.DEVELOPER_SUPPLIED) { - /*change ID without merge as current ID is Dev supplied, so not first login*/ + // change ID without merge as current ID is Dev supplied, so not first login Countly.change_id(newId, false); - } else { - /*change ID with merge as current ID is not Dev supplied*/ + } + else { + // change ID with merge as current ID is not Dev supplied*/ Countly.change_id(newId, true); } };