Helper/Nix.pm: perlcritic statsd in scalar context
This commit is contained in:
parent
55b7802b61
commit
c54629b732
|
@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue