forked from lix-project/hydra
Helper/Nix.pm: perlcritic statsd in scalar context
This commit is contained in:
parent
55b7802b61
commit
c54629b732
1 changed files with 2 additions and 2 deletions
|
@ -66,8 +66,8 @@ sub getStatsdConfig {
|
||||||
my %statsd = defined $cfg ? ref $cfg eq "HASH" ? %$cfg : ($cfg) : ();
|
my %statsd = defined $cfg ? ref $cfg eq "HASH" ? %$cfg : ($cfg) : ();
|
||||||
|
|
||||||
return {
|
return {
|
||||||
"host" => %statsd{'host'} // 'localhost',
|
"host" => $statsd{'host'} // 'localhost',
|
||||||
"port" => %statsd{'port'} // 8125,
|
"port" => $statsd{'port'} // 8125,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue