]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
Fix some warnigns in recent perls.
authorShlomi Fish <shlomif@shlomifish.org>
Mon, 17 Dec 2012 20:44:54 +0000 (22:44 +0200)
committerShlomi Fish <shlomif@shlomifish.org>
Mon, 17 Dec 2012 20:44:54 +0000 (22:44 +0200)
All existing tests pass.

IkiWiki/Plugin/git.pm

index 0c0e27521aa55d0381041e75721a618e1f55cf43..3879abeae5b20e05d4f9c2990c270c6943982b65 100644 (file)
@@ -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.