]> Sergey Matveev's repositories - public-inbox.git/commit
favor `do {}' over `eval {}' for localized slurp
authorEric Wong <e@yhbt.net>
Sat, 18 Apr 2020 03:38:50 +0000 (03:38 +0000)
committerEric Wong <e@yhbt.net>
Sun, 19 Apr 2020 08:51:24 +0000 (08:51 +0000)
commita479b45117ed69d9311770fa39e6676d38f9cab2
tree9262dbdd0147b02a7d9d9a797271ec25e8aa1c5f
parenta014723b600e35cd495f048c89611e611436a15e
favor `do {}' over `eval {}' for localized slurp

I did not know to use the return value of `do' back in the day.
There's probably no practical difference in these cases, but
`eval' is overkill for these uses and may hide actual errors.

We can get rid of a few redundant `scalar' ops and pass scalar
refs to Email::MIME->new to avoid copies in a few more places,
too.
script/public-inbox-learn
script/public-inbox-mda
script/public-inbox-purge
scripts/import_maildir
scripts/import_slrnspool
scripts/slrnspool2maildir
scripts/ssoma-replay
t/v2reindex.t
t/watch_maildir_v2.t