diff options
author | Eric Wong <e@80x24.org> | 2017-01-07 01:44:51 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2017-01-07 01:45:45 +0000 |
commit | 492910d43c179a7e1919b2d0f417aea9473f9730 (patch) | |
tree | 659ecf60edb181bd146a28e80612270ff5cefe18 /lib/PublicInbox/Inbox.pm | |
parent | f63ea68e457f9e2618eac1d3d62227d2b605651b (diff) | |
download | public-inbox-492910d43c179a7e1919b2d0f417aea9473f9730.tar.gz |
This is faster, smaller, and more straighforward to me with fewer layers of indirection.
Diffstat (limited to 'lib/PublicInbox/Inbox.pm')
-rw-r--r-- | lib/PublicInbox/Inbox.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/PublicInbox/Inbox.pm b/lib/PublicInbox/Inbox.pm index f77944f5..aa4e141f 100644 --- a/lib/PublicInbox/Inbox.pm +++ b/lib/PublicInbox/Inbox.pm @@ -216,7 +216,8 @@ sub msg_by_smsg ($$;$) { # backwards compat to fallback to msg_by_mid # TODO: remove if we bump SCHEMA_VERSION in Search.pm: - defined(my $blob = $smsg->blob) or return msg_by_mid($self, $smsg->mid); + defined(my $blob = $smsg->{blob}) or + return msg_by_mid($self, $smsg->mid); my $str = git($self)->cat_file($blob, $ref); $$str =~ s/\A[\r\n]*From [^\r\n]*\r?\n//s if $str; |