aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin
diff options
context:
space:
mode:
authorShlomi Fish <shlomif@shlomifish.org>2012-12-17 22:44:54 +0200
committerShlomi Fish <shlomif@shlomifish.org>2012-12-17 22:44:54 +0200
commit12c9219d671c672fedcf9e9ab7f9187b23b8f7f4 (patch)
treeeb4d7b9af125821e8a1066df795329c4ee514446 /IkiWiki/Plugin
parenta877cc5d4caeab4f6f369fd1f1aa7520edb7e05f (diff)
downloadikiwiki-12c9219d671c672fedcf9e9ab7f9187b23b8f7f4.tar
ikiwiki-12c9219d671c672fedcf9e9ab7f9187b23b8f7f4.tar.gz
Fix some warnigns in recent perls.
All existing tests pass.
Diffstat (limited to 'IkiWiki/Plugin')
-rw-r--r--IkiWiki/Plugin/git.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/IkiWiki/Plugin/git.pm b/IkiWiki/Plugin/git.pm
index 0c0e27521..3879abeae 100644
--- a/IkiWiki/Plugin/git.pm
+++ b/IkiWiki/Plugin/git.pm
@@ -341,8 +341,8 @@ sub parse_diff_tree ($) {
my $dt_ref = shift;
# End of stream?
- return if !defined @{ $dt_ref } ||
- !defined @{ $dt_ref }[0] || !length @{ $dt_ref }[0];
+ return if ! @{ $dt_ref } ||
+ !defined $dt_ref->[0] || !length $dt_ref->[0];
my %ci;
# Header line.