Skip to content

Commit

Permalink
chore: reduce cognitive complexity+1
Browse files Browse the repository at this point in the history
  • Loading branch information
anantjain45823 committed Oct 30, 2023
1 parent 4cc9ce4 commit db617ad
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/v0/destinations/am/transform.js
Original file line number Diff line number Diff line change
Expand Up @@ -224,10 +224,10 @@ const handleMappingJsonObject = (
if (isDefinedAndNotNull(data)) {
set(payload, outKey, data);
delete message.traits[outKey];
} else {
// get the destKey/outKey value from calling the util function
set(payload, outKey, AMUtils[funcName](message, sourceKey, Config));
}
return;
}
// get the destKey/outKey value from calling the util function
set(payload, outKey, AMUtils[funcName](message, sourceKey, Config));
}
}
};
Expand Down
2 changes: 1 addition & 1 deletion src/v0/util/testdata/isValidInteger.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
},
{
"description": "Float string",
"input": "123.91",
"input": "123.00",
"output": false
},
{
Expand Down

0 comments on commit db617ad

Please sign in to comment.