Skip to content

Commit

Permalink
Lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Ali Rıza Kat committed Nov 4, 2024
1 parent 701bc57 commit 4a087cb
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions lib/countly.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
};
Expand Down

0 comments on commit 4a087cb

Please sign in to comment.