diff options
author | Eric Wong <e@80x24.org> | 2016-05-14 02:54:09 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2016-05-14 02:54:09 +0000 |
commit | 9bfe40e7a4ace33fe3bd31e8589703fa5ef53d2a (patch) | |
tree | 033fdef01e54a7b2a7b2368e1b698d914521d352 /lib/PublicInbox/NewsGroup.pm | |
parent | 68a70c10fcf5bacc5ae6258177917ae45ab67365 (diff) | |
download | public-inbox-9bfe40e7a4ace33fe3bd31e8589703fa5ef53d2a.tar.gz |
This reduces the cognitive overhead for mapping names of configuration values to internal field names of our classes. Further changes along these lines coming...
Diffstat (limited to 'lib/PublicInbox/NewsGroup.pm')
-rw-r--r-- | lib/PublicInbox/NewsGroup.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/NewsGroup.pm b/lib/PublicInbox/NewsGroup.pm index 98a3595a..500f61e3 100644 --- a/lib/PublicInbox/NewsGroup.pm +++ b/lib/PublicInbox/NewsGroup.pm @@ -13,7 +13,7 @@ require PublicInbox::Search; require PublicInbox::Git; sub new { - my ($class, $name, $git_dir, $address, $url) = @_; + my ($class, $newsgroup, $git_dir, $address, $url) = @_; # first email address is preferred $address = $address->[0] if ref($address); @@ -24,7 +24,7 @@ sub new { $url .= '/' if $url !~ m!/\z!; } my $self = bless { - name => $name, + newsgroup => $newsgroup, git_dir => $git_dir, address => $address, url => $url, |