diff options
author | Eric Wong <e@80x24.org> | 2017-02-17 23:40:37 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2017-02-17 23:41:34 +0000 |
commit | 3adb3d824864804a357b68dd33f9c2c973742174 (patch) | |
tree | dd403014d2b9248be2f1d44bb957b742f7ef5d72 /lib/PublicInbox/RepoGitSummary.pm | |
parent | 7ca9df837d6b6ac060a9f321fe87900218ef7e88 (diff) | |
download | public-inbox-3adb3d824864804a357b68dd33f9c2c973742174.tar.gz |
Avoid using '=>' arrow notation for arrays and array references, it is confusing and more verbose. Additionally, combine "use constant" statements when possible.
Diffstat (limited to 'lib/PublicInbox/RepoGitSummary.pm')
-rw-r--r-- | lib/PublicInbox/RepoGitSummary.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/RepoGitSummary.pm b/lib/PublicInbox/RepoGitSummary.pm index 38fce1f5..5eb8087d 100644 --- a/lib/PublicInbox/RepoGitSummary.pm +++ b/lib/PublicInbox/RepoGitSummary.pm @@ -32,7 +32,7 @@ sub for_each_ref { my $refs = $git->popen(qw(for-each-ref --sort=-creatordate), EACH_REF_FMT, "--count=$count", qw(refs/heads/ refs/tags/)); - $fh = $res->([200, ['Content-Type'=>'text/html; charset=UTF-8']]); + $fh = $res->([200, ['Content-Type', 'text/html; charset=UTF-8']]); # ref names are unpredictable in length and requires tables :< $fh->write($self->html_start($req, "$repo->{repo}: overview") . |