Helper/Nix.pm: perlcritic statsd in scalar context

This commit is contained in:
Your Name 2021-08-19 17:01:27 -04:00 committed by Graham Christensen
parent 55b7802b61
commit c54629b732

View file

@ -66,8 +66,8 @@ sub getStatsdConfig {
my %statsd = defined $cfg ? ref $cfg eq "HASH" ? %$cfg : ($cfg) : ();
return {
"host" => %statsd{'host'} // 'localhost',
"port" => %statsd{'port'} // 8125,
"host" => $statsd{'host'} // 'localhost',
"port" => $statsd{'port'} // 8125,
}
}