summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorChristian Lohmaier <lohmaier+LibreOffice@googlemail.com>2017-04-29 17:00:09 +0200
committerAndras Timar <andras.timar@collabora.com>2017-08-04 12:05:08 +0200
commit2f328efcf1f1ae9f04cdafc72ac2ab28aba37c8b (patch)
tree04d4deba60cb6e2e5cada993682c56fdbb7a0e18 /bin
parent639ace836d589b9873b2a54e2b2071a767b525da (diff)
lo-commit-stat: drop unnecessary check whether hash is defined
besides using deprecated syntax – "if (defined %hash)" (or "if (defined @array)" for that matter) – just using "if (%hash)" (or "if (@array)") would do, it is also unnecessary to create the hash if it doesn't exist (autovivification will take care of that) Change-Id: Ib5704b2d609ae3658f3c166f9e26a051957149f8 (cherry picked from commit 146258f82fc15d0a5f8779447a4919429496e9e3) (cherry picked from commit 39092ed597bbe3653638736f61748843ddc1cc99)
Diffstat (limited to 'bin')
-rwxr-xr-xbin/lo-commit-stat2
1 files changed, 0 insertions, 2 deletions
diff --git a/bin/lo-commit-stat b/bin/lo-commit-stat
index e33ca798f41e..a4e3f7d1ae32 100755
--- a/bin/lo-commit-stat
+++ b/bin/lo-commit-stat
@@ -68,7 +68,6 @@ sub search_bugs($$$$)
# someone mistyped fdo as fd0
$bug =~ s/^fd0\#/fdo#/;
# save the bug number
- %{$pdata->{$module}{$commit_id}{'bugs'}} = () if (! defined %{$pdata->{$module}{$commit_id}{'bugs'}});
$pdata->{$module}{$commit_id}{'bugs'}{$bug} = 1;
}
@@ -262,7 +261,6 @@ sub get_bug_list($$$)
foreach my $module ( keys %{$pdata}) {
foreach my $id ( keys %{$pdata->{$module}}) {
foreach my $bug (keys %{$pdata->{$module}{$id}{'bugs'}}) {
- %{$pbugs->{$bug}} = () if (! defined %{$pbugs->{$bug}});
my $author = $pdata->{$module}{$id}{'author'}{'name'};
my $summary = $pdata->{$module}{$id}{'summary'};
$pbugs->{$bug}{'summary'} = $summary;