diff options
author | Eric Wong <e@yhbt.net> | 2020-01-25 04:45:09 +0000 |
---|---|---|
committer | Eric Wong <e@yhbt.net> | 2020-01-27 02:59:09 +0000 |
commit | 19671d5736639c9f5d063a87a075fd309e41d203 (patch) | |
tree | cff358fa6391adc14ae75224eb1e2604965c8035 /lib/PublicInbox | |
parent | a1c0068fbb94cf8c5606567433ff679ae98c8a4c (diff) | |
download | public-inbox-19671d5736639c9f5d063a87a075fd309e41d203.tar.gz |
No sense in wasting code to do something the interpreter already does for us.
Diffstat (limited to 'lib/PublicInbox')
-rw-r--r-- | lib/PublicInbox/ViewDiff.pm | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/PublicInbox/ViewDiff.pm b/lib/PublicInbox/ViewDiff.pm index ff7d85f5..ece95f4c 100644 --- a/lib/PublicInbox/ViewDiff.pm +++ b/lib/PublicInbox/ViewDiff.pm @@ -92,8 +92,7 @@ sub anchor0 ($$$$$) { # long filenames will require us to walk backwards in anchor1 if ($fn =~ s!\A\.\.\./?!!) { - my $lp = $ctx->{-long_path} ||= {}; - $lp->{$fn} = qr/\Q$fn\E\z/s; + $ctx->{-long_path}->{$fn} = qr/\Q$fn\E\z/s; } if (my $attr = to_attr($ctx->{-apfx}.$fn)) { |