From 3adb3d824864804a357b68dd33f9c2c973742174 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 17 Feb 2017 23:40:37 +0000 Subject: repobrowse: minor style cleanups Avoid using '=>' arrow notation for arrays and array references, it is confusing and more verbose. Additionally, combine "use constant" statements when possible. --- lib/PublicInbox/RepoGitBlob.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/PublicInbox/RepoGitBlob.pm') diff --git a/lib/PublicInbox/RepoGitBlob.pm b/lib/PublicInbox/RepoGitBlob.pm index b535b0ad..84f48c65 100644 --- a/lib/PublicInbox/RepoGitBlob.pm +++ b/lib/PublicInbox/RepoGitBlob.pm @@ -56,8 +56,8 @@ sub git_blob_stream_response { my ($res) = @_; my $to_read = 8192; eval { - my $fh = $res->([ 200, ['Content-Length' => $size, - 'Content-Type' => $type]]); + my $fh = $res->([ 200, ['Content-Length', $size, + 'Content-Type', $type]]); $fh->write($buf) if defined $buf; while ($left > 0) { $to_read = $left if $to_read > $left; -- cgit v1.2.3-24-ge0c7