Skip to content

Commit

Permalink
remove usage of // operation
Browse files Browse the repository at this point in the history
  • Loading branch information
peczenyj committed Dec 7, 2023
1 parent 0b30ca3 commit 0518079
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/GDPR/IAB/TCFv2.pm
Original file line number Diff line number Diff line change
Expand Up @@ -318,13 +318,13 @@ sub _parse_publisher_restrictions {
$current_offset
);

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

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

$current_offset = $next_offset;
}


my $publisher_restrictions = GDPR::IAB::TCFv2::PublisherRestrictions->new(
restrictions => \%restrictions,
);
Expand Down
2 changes: 1 addition & 1 deletion t/01-parse.t
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ subtest "check publisher restriction" => sub {
done_testing;
};

done_testing;
done_testing;
};

subtest "invalid tcf consent string candidates" => sub {
Expand Down

0 comments on commit 0518079

Please sign in to comment.