Browse Source

Enabled reporting multiple warnings

Alois Mahdal 12 years ago
parent
commit
25dbbb2a0d
1 changed files with 0 additions and 2 deletions
  1. 0
    2
      lib/SugarTrail/Template/Condition.pm

+ 0
- 2
lib/SugarTrail/Template/Condition.pm View File

89
             $self->{string},
89
             $self->{string},
90
             $name
90
             $name
91
         ));
91
         ));
92
-        return 1;
93
     }
92
     }
94
 
93
 
95
     # execute the right handler or warn it does not exist
94
     # execute the right handler or warn it does not exist
97
         return &{ $self->{handlers}->{$op} }($want, $have);
96
         return &{ $self->{handlers}->{$op} }($want, $have);
98
     } else {
97
     } else {
99
         $self->warn("unknown operator: $op");
98
         $self->warn("unknown operator: $op");
100
-        return 1;
101
     }
99
     }
102
 }
100
 }
103
 
101