Browse Source

Prevented unnecessary warning

Alois Mahdal (@azzgoat) 11 years ago
parent
commit
a09b550a55
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      lib/SugarTrail/Template/Slave.pm

+ 1
- 1
lib/SugarTrail/Template/Slave.pm View File

40
     foreach my $step (@{$self->{steps}}) {
40
     foreach my $step (@{$self->{steps}}) {
41
         push @warnings, $_ foreach @{$step->{warnings}};
41
         push @warnings, $_ foreach @{$step->{warnings}};
42
     }
42
     }
43
-    my $warnings;
43
+    my $warnings = "";
44
     if (@warnings) {
44
     if (@warnings) {
45
         $warnings .= "---\n# SUGAR-TRAIL WARNINGS #\n\n";
45
         $warnings .= "---\n# SUGAR-TRAIL WARNINGS #\n\n";
46
         foreach (@warnings) {
46
         foreach (@warnings) {