Skip to content

Commit

Permalink
Early checks the value of "recipient" returned from Sisimai::Message-…
Browse files Browse the repository at this point in the history
…>rise
  • Loading branch information
azumakuniyuki committed Aug 26, 2024
1 parent 33fe1d3 commit e2b7a0e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Sisimai/Fact.pm
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ sub rise {

RISEOF: for my $e ( $mesg1->{'ds'}->@* ) {
# Create parameters
next unless $e->{'recipient'};

my $o = {}; # To be blessed and pushed into the array above at the end of the loop
my $p = {
'action' => $e->{'action'} // '',
Expand Down Expand Up @@ -117,7 +119,6 @@ sub rise {
}
}
next RISEOF unless $p->{'addresser'};
next RISEOF unless $p->{'recipient'};

TIMESTAMP: {
# Convert from a time stamp or a date string to a machine time.
Expand Down

0 comments on commit e2b7a0e

Please sign in to comment.