Skip to content

Commit 964fb18

Browse files
committed
remove check for blockUserAttributes and change var to const
1 parent b65addf commit 964fb18

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/kitBlocking.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -460,15 +460,15 @@ export default class KitBlocker {
460460
if (!this.blockUserAttributes) {
461461
return false
462462
}
463-
var matchedAttributes = this.dataPlanMatchLookups['user_attributes'];
463+
const matchedAttributes = this.dataPlanMatchLookups['user_attributes'];
464464

465465
// When additionalProperties is set to true, matchedAttributes
466466
// will be a boolean, otherwise it will return an object
467467
if (typeof matchedAttributes === 'boolean' && matchedAttributes) {
468468
return false
469469
}
470470

471-
if (this.blockUserAttributes && typeof matchedAttributes === "object") {
471+
if (typeof matchedAttributes === "object") {
472472
if (matchedAttributes[key] === true) {
473473
return false;
474474
} else {

0 commit comments

Comments
 (0)