From a4b29c7de85b456d9fa4613fc2f47bba20ca3594 Mon Sep 17 00:00:00 2001 From: dakkar Date: Tue, 31 Dec 2019 14:06:34 +0000 Subject: better fix for the array type check the slip seems to take the `:delete` as its own argument, and dies forcig explicit list context on the LHS works, although I'm not sure why it's needed --- lib/MaildirIndexer/Index/ByAddresses.rakumod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/MaildirIndexer/Index/ByAddresses.rakumod b/lib/MaildirIndexer/Index/ByAddresses.rakumod index 7ee2f96..d9fd945 100644 --- a/lib/MaildirIndexer/Index/ByAddresses.rakumod +++ b/lib/MaildirIndexer/Index/ByAddresses.rakumod @@ -46,7 +46,7 @@ method add-mail(MaildirIndexer::Email:D $email, Str:D $mailbox --> Nil) { method del-path(IO:D $file, Str:D $mailbox --> Nil) { MaildirIndexer::LogTimelineSchema::Index::Rm.log: :class('ByAddresses'),:$mailbox, -> { - my Str @addresses = |%!addresses-for-file{$file.path}:delete or return; + my Str (@addresses,) = %!addresses-for-file{$file.path}:delete or return; self.account-for(@addresses,$mailbox,-1); -- cgit v1.2.3