Subject: | Avoid undef warnings in HTML::Widget::Filter::TrimEdges |
We've had this patch applied locally for quite some time:
@@ -24,10 +24,8 @@
sub filter {
my ( $self, $value ) = @_;
- if (defined $value) {
- $value =~ s/^\s+//;
- $value =~ s/\s+$//;
- }
+ $value =~ s/^\s+//;
+ $value =~ s/\s+$//;
return $value;
}