chore: apply code review
This commit is contained in:
parent
cec399c602
commit
80205d9704
|
@ -2818,7 +2818,7 @@ is_port_number(Port) ->
|
|||
|
||||
parse_port(Port) ->
|
||||
case string:to_integer(string:strip(Port)) of
|
||||
{P, ""} when P < 0 -> throw("port_number_too_small");
|
||||
{P, ""} when P < 0 -> throw("port_number_must_be_positive");
|
||||
{P, ""} when P > 65535 -> throw("port_number_too_large");
|
||||
{P, ""} -> P;
|
||||
_ -> throw("bad_port_number")
|
||||
|
|
|
@ -1 +1 @@
|
|||
Fix crash when `statsd.server` is empty
|
||||
Fix crash when `statsd.server` is set to an empty string.
|
||||
|
|
|
@ -1 +1 @@
|
|||
修复 `statsd.server` 为空时启动崩溃的问题
|
||||
修复 `statsd.server` 配置为空字符串时启动崩溃的问题。
|
||||
|
|
Loading…
Reference in New Issue