diff options
author | Eric Wong <e@80x24.org> | 2014-09-07 22:56:09 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2014-09-07 22:57:58 +0000 |
commit | 627b9bd388d67d6532a7f2dba0603a602a412a07 (patch) | |
tree | 9172cbe04141c6d897cdda36c929ed126cd02af4 | |
parent | 5074cb81a375a3ee57c5c3c57a9a2298c76a698f (diff) | |
download | public-inbox-627b9bd388d67d6532a7f2dba0603a602a412a07.tar.gz |
feed: (cleanup) avoid redundant ->message call
Avoid redundant subroutine calls as their costs tend to add up.
-rw-r--r-- | lib/PublicInbox/Feed.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/Feed.pm b/lib/PublicInbox/Feed.pm index 1f1c0d6b..350cc65e 100644 --- a/lib/PublicInbox/Feed.pm +++ b/lib/PublicInbox/Feed.pm @@ -286,8 +286,8 @@ sub add_to_feed { sub dump_msg { my ($self, $level, $html, $now, $seen) = @_; - if ($self->message) { - my $mime = $self->message; + my $mime = $self->message; + if ($mime) { $$html .= PublicInbox::View->index_entry($mime, $now, $level, $seen); } |