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:
Cole Helbling 2021-11-30 12:33:04 -08:00
parent 78233b8083
commit d56815cae6

View file

@ -279,7 +279,7 @@ sub requirePost {
sub trim {
my $s = shift;
my $s = shift // "";
$s =~ s/^\s+|\s+$//g;
return $s;
}