mirror of
https://gitee.com/log4j/pig.git
synced 2025-01-03 23:42:22 +08:00
🎨 Improving structure / format of the code.
This commit is contained in:
parent
7bac3d9702
commit
570064a588
@ -51,9 +51,9 @@ public class MachineRegistryController {
|
||||
if (StringUtil.isBlank(ip) || ip.length() > 128) {
|
||||
return Result.ofFail(-1, "invalid ip: " + ip);
|
||||
}
|
||||
if (!InetAddressUtils.isIPv4Address(ip) && !InetAddressUtils.isIPv6Address(ip)) {
|
||||
return Result.ofFail(-1, "invalid ip: " + ip);
|
||||
}
|
||||
if (!InetAddressUtils.isIPv4Address(ip) && !InetAddressUtils.isIPv6Address(ip)) {
|
||||
return Result.ofFail(-1, "invalid ip: " + ip);
|
||||
}
|
||||
if (port == null || port < -1) {
|
||||
return Result.ofFail(-1, "invalid port");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user