Skip to content

Commit 1dd6e17

Browse files
roblgdfabulich
authored andcommitted
Attempting to fix uninitialized value warnings
1 parent be13c16 commit 1dd6e17

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

eg

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,9 @@ sub run {
438438
$local_branch_set{$name} = 1;
439439
} else {
440440
push(@remote_branches, $_);
441-
if (!%latest_remote_branches || !defined($latest_remote_branches{$name}) || $latest_remote_branches{$name}->{"date"} < $_->{"date"}) {
441+
if (!%latest_remote_branches
442+
|| !defined($latest_remote_branches{$name})
443+
|| (defined($_->{"date"}) && $latest_remote_branches{$name}->{"date"} < $_->{"date"})) {
442444
$latest_remote_branches{$name} = $_;
443445
}
444446
}

0 commit comments

Comments
 (0)