Skip to content

Commit

Permalink
simplify code
Browse files Browse the repository at this point in the history
  • Loading branch information
peczenyj committed Dec 7, 2023
1 parent 0518079 commit 76e95d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/GDPR/IAB/TCFv2.pm
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ sub _parse_publisher_restrictions {
$current_offset
);

$restrictions{$purpose_id} = {} if !defined $restrictions{$purpose_id};
$restrictions{$purpose_id} ||= {};

$restrictions{$purpose_id}->{$restriction_type} = $vendor_restrictions;

Expand Down

0 comments on commit 76e95d7

Please sign in to comment.