about summary refs log tree commit homepage
path: root/lib
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2014-09-07 22:56:09 +0000
committerEric Wong <e@80x24.org>2014-09-07 22:57:58 +0000
commit627b9bd388d67d6532a7f2dba0603a602a412a07 (patch)
tree9172cbe04141c6d897cdda36c929ed126cd02af4 /lib
parent5074cb81a375a3ee57c5c3c57a9a2298c76a698f (diff)
downloadpublic-inbox-627b9bd388d67d6532a7f2dba0603a602a412a07.tar.gz
feed: (cleanup) avoid redundant ->message call
Avoid redundant subroutine calls as their costs tend to add up.
Diffstat (limited to 'lib')
-rw-r--r--lib/PublicInbox/Feed.pm4
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);
         }