]> Sergey Matveev's repositories - public-inbox.git/commit
treewide: kill problematic "$h->{k} //= do {" assignments
authorEric Wong <e@80x24.org>
Mon, 1 Nov 2021 19:06:09 +0000 (19:06 +0000)
committerEric Wong <e@80x24.org>
Mon, 1 Nov 2021 19:49:39 +0000 (19:49 +0000)
commit8d2513221e73649aed85ce8c3f37f7025ec1fec9
treef133a22e4174ae5326a45ca2a3dc63604f0c72d4
parentb46de4da83d797281af9603f350e5b7105845eed
treewide: kill problematic "$h->{k} //= do {" assignments

As stated in the previous change, conditional hash assignments
which trigger other hash assignments seem problematic, at times.
So replace:

$h->{k} //= do { $h->{x} = ...; $val };

$h->{k} // do {
$h->{x} = ...;
$hk->{k} = $val
};

"||=" is affected the same way, and some instances of "||=" are
replaced with "//=" or "// do {", now.
lib/PublicInbox/Config.pm
lib/PublicInbox/Git.pm
lib/PublicInbox/IMAP.pm
lib/PublicInbox/Inbox.pm
lib/PublicInbox/LEI.pm
lib/PublicInbox/SharedKV.pm
lib/PublicInbox/WWW.pm
lib/PublicInbox/WwwStatic.pm
lib/PublicInbox/WwwStream.pm