You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by hu...@apache.org on 2018/05/09 07:18:05 UTC
[incubator-dubbo] 06/06: Remove unnecessary null check and fix typo.
This is an automated email from the ASF dual-hosted git repository.
huxing pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-dubbo.git
commit 6ec0225cfa9b45c8349d19019f965d5c52d40a09
Author: Huxing Zhang <hu...@gmail.com>
AuthorDate: Wed May 9 15:15:01 2018 +0800
Remove unnecessary null check and fix typo.
---
.../com/alibaba/dubbo/registry/status/RegistryStatusChecker.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/dubbo-registry/dubbo-registry-api/src/main/java/com/alibaba/dubbo/registry/status/RegistryStatusChecker.java b/dubbo-registry/dubbo-registry-api/src/main/java/com/alibaba/dubbo/registry/status/RegistryStatusChecker.java
index 3298656..e0772d6 100644
--- a/dubbo-registry/dubbo-registry-api/src/main/java/com/alibaba/dubbo/registry/status/RegistryStatusChecker.java
+++ b/dubbo-registry/dubbo-registry-api/src/main/java/com/alibaba/dubbo/registry/status/RegistryStatusChecker.java
@@ -33,13 +33,13 @@ public class RegistryStatusChecker implements StatusChecker {
@Override
public Status check() {
- Collection<Registry> regsitries = AbstractRegistryFactory.getRegistries();
- if (regsitries == null || regsitries.isEmpty()) {
+ Collection<Registry> registries = AbstractRegistryFactory.getRegistries();
+ if (registries.isEmpty()) {
return new Status(Status.Level.UNKNOWN);
}
Status.Level level = Status.Level.OK;
StringBuilder buf = new StringBuilder();
- for (Registry registry : regsitries) {
+ for (Registry registry : registries) {
if (buf.length() > 0) {
buf.append(",");
}
--
To stop receiving notification emails like this one, please contact
huxing@apache.org.