Skip to content

Commit

Permalink
Reuse destroyRegistered variable
Browse files Browse the repository at this point in the history
  • Loading branch information
BurningCN committed May 21, 2021
1 parent f6526eb commit ede388d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ public void destroy() {
}
Set<URL> destroyRegistered = new HashSet<>(getRegistered());
if (!destroyRegistered.isEmpty()) {
for (URL url : new HashSet<>(getRegistered())) {
for (URL url : new HashSet<>(destroyRegistered)) {
if (url.getParameter(DYNAMIC_KEY, true)) {
try {
unregister(url);
Expand Down

0 comments on commit ede388d

Please sign in to comment.