Skip to content

Commit

Permalink
Perl 5.36.0 does not yet support undef-or, but we don't need it here …
Browse files Browse the repository at this point in the history
…anyway
  • Loading branch information
tom-binary committed Jul 17, 2024
1 parent fdea9a7 commit 419be25
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/Myriad/Storage/Implementation/Memory.pm
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ Returns a L<Future> which will resolve to .
=cut

async method hash_set : Defer ($k, $hash_key, $v //= undef) {
async method hash_set : Defer ($k, $hash_key, $v = undef) {
if(ref $hash_key eq 'HASH') {
@{$data{$k}}{keys $hash_key->%*} = values $hash_key->%*;
return 0 + keys $hash_key->%*;
Expand Down
2 changes: 1 addition & 1 deletion lib/Myriad/Storage/Implementation/Redis.pm
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ Returns a L<Future> which will resolve to .
=cut

async method hash_set ($k, $hash_key, $v //= undef) {
async method hash_set ($k, $hash_key, $v = undef) {
if(ref $hash_key eq 'HASH') {
await $redis->hmset($self->apply_prefix($k), $hash_key->%*);
} else {
Expand Down

0 comments on commit 419be25

Please sign in to comment.