Skip to content

Commit

Permalink
removed redundant code
Browse files Browse the repository at this point in the history
  • Loading branch information
Moumita Mandal committed Dec 29, 2021
1 parent b3c165e commit c08f520
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions cookieConsent/OneTrust/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,7 @@ class OneTrust {
// Check if any value is there in the destination's cookie groups.
// If not events will go anyway to the destination.

if (
Array.isArray(oneTrustConsentGroupArr) &&
oneTrustConsentGroupArr.length
) {
if (oneTrustConsentGroupArr.length) {
// Check if all the destination's mapped cookie categories are consented by the user in the browser.
containsAllConsent = oneTrustConsentGroupArr.every((element) =>
this.userSetConsentGroupNames.includes(element.toUpperCase().trim())
Expand Down

0 comments on commit c08f520

Please sign in to comment.