]> Sergey Matveev's repositories - public-inbox.git/commit
inbox: simplify ->description and ->cloneurl
authorEric Wong <e@yhbt.net>
Tue, 4 Feb 2020 04:44:23 +0000 (04:44 +0000)
committerEric Wong <e@yhbt.net>
Tue, 4 Feb 2020 21:39:54 +0000 (21:39 +0000)
commit6d4fced4acc79d745fcfae972d23c3e0849d277f
tree8d1489c9e1e35a1951563b04df3bf7643d3c4065
parentbf4d35dd2f6389e9aa4dc87fdfaef801fa5b9108
inbox: simplify ->description and ->cloneurl

We can use "//=" from Perl 5.10 to simplify the logic for these
methods.  The use of chomp() in ->cloneurl was also unnecessary
since split(/\s+/s,...) already removes newlines.
lib/PublicInbox/Inbox.pm