forked from lix-project/hydra
Hydra/Helper/CatalystUtils: default trim arg to empty string
12:34:12 hydra-server.1 | Use of uninitialized value $s in substitution (s///) at /home/vin/workspace/vcs/hydra/src/script/../lib/Hydra/Helper/CatalystUtils.pm line 283, <$fh> line 1.
This commit is contained in:
parent
78233b8083
commit
d56815cae6
|
@ -279,7 +279,7 @@ sub requirePost {
|
|||
|
||||
|
||||
sub trim {
|
||||
my $s = shift;
|
||||
my $s = shift // "";
|
||||
$s =~ s/^\s+|\s+$//g;
|
||||
return $s;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue