diff options
author | Shlomi Fish <shlomif@shlomifish.org> | 2012-12-17 22:44:54 +0200 |
---|---|---|
committer | Shlomi Fish <shlomif@shlomifish.org> | 2012-12-17 22:44:54 +0200 |
commit | 12c9219d671c672fedcf9e9ab7f9187b23b8f7f4 (patch) | |
tree | eb4d7b9af125821e8a1066df795329c4ee514446 /IkiWiki/Plugin | |
parent | a877cc5d4caeab4f6f369fd1f1aa7520edb7e05f (diff) | |
download | ikiwiki-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.pm | 4 |
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. |