]> Lady’s Gitweb - Gitweb/commit
gitweb: Use block form of map/grep in a few cases more
authorJakub Narebski <redacted>
Sun, 10 May 2009 00:40:37 +0000 (02:40 +0200)
committerLady <redacted>
Mon, 6 Apr 2026 04:50:38 +0000 (00:50 -0400)
commit95927b6a539256cd056bb6b5e293d12341c9b714956e317620c626c836f511e8
tree894725ec06a7589bbfe09744de21ea46fa4996a889b1074b046625a8c1ea953a
parent6025337657f0ffbc345e1d46974cfb4285dd0fab753a358a51d4d2b46256191f
gitweb: Use block form of map/grep in a few cases more

Use block form of 'grep' i.e. 'grep {BLOCK} LIST' rather than
'grep(EXPR, LIST)' in filter_snapshot_fmts subroutine.  This makes
code more readable, as expression is rather long, and statement above
there is 'map' with very similar expression also in the block form.

Remove unnecessary and misleading parentheses around block form 'map'
arguments in quote_command subroutine.

The inner "map" in format_snapshot_links was left alone, as it is not
clear whether adding parentheses or changing it into block form would
improve readibility and clarity of this code.

Signed-off-by: Jakub Narebski <redacted>
Signed-off-by: Junio C Hamano <redacted>
gitweb.perl
This page took 0.287188 seconds and 4 git commands to generate.