diff options
author | dakkar <dakkar@thenautilus.net> | 2019-12-31 14:06:34 +0000 |
---|---|---|
committer | dakkar <dakkar@thenautilus.net> | 2019-12-31 14:06:34 +0000 |
commit | a4b29c7de85b456d9fa4613fc2f47bba20ca3594 (patch) | |
tree | c4a34fe0abf726e488cc6fd4c288d3d2088091a9 | |
parent | avoid type check failure (diff) | |
download | MaildirIndexer-a4b29c7de85b456d9fa4613fc2f47bba20ca3594.tar.gz MaildirIndexer-a4b29c7de85b456d9fa4613fc2f47bba20ca3594.tar.bz2 MaildirIndexer-a4b29c7de85b456d9fa4613fc2f47bba20ca3594.zip |
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
-rw-r--r-- | lib/MaildirIndexer/Index/ByAddresses.rakumod | 2 |
1 files changed, 1 insertions, 1 deletions
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); |