Skip to content

Commit

Permalink
Remove unnessesary code in RegistryDirectory#doList (apache#2861)
Browse files Browse the repository at this point in the history
* remove unnessesary code

* remove unused import
  • Loading branch information
LiZhenNet authored and beiwei30 committed Dec 4, 2018
1 parent 32140d4 commit d0f7c05
Showing 1 changed file with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
import java.util.Comparator;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Set;
Expand Down Expand Up @@ -594,12 +593,6 @@ public List<Invoker<T>> doList(Invocation invocation) {
if (invokers == null) {
invokers = localMethodInvokerMap.get(Constants.ANY_VALUE);
}
if (invokers == null) {
Iterator<List<Invoker<T>>> iterator = localMethodInvokerMap.values().iterator();
if (iterator.hasNext()) {
invokers = iterator.next();
}
}
}
return invokers == null ? new ArrayList<Invoker<T>>(0) : invokers;
}
Expand Down

0 comments on commit d0f7c05

Please sign in to comment.