Commit f6095e76 authored by Liang Ding's avatar Liang Ding

🎨 Cleanup code

parent 8f252221
......@@ -15,7 +15,6 @@
*/
package org.b3log.solo.event.plugin;
import org.b3log.latke.event.AbstractEventListener;
import org.b3log.latke.event.Event;
import org.b3log.latke.event.EventException;
......@@ -32,7 +31,6 @@ import org.b3log.solo.service.PluginMgmtService;
import java.util.List;
/**
* This listener is responsible for refreshing plugin after every loaded.
*
......@@ -58,10 +56,8 @@ public final class PluginRefresher extends AbstractEventListener<List<AbstractPl
final PluginRepository pluginRepository = beanManager.getReference(PluginRepositoryImpl.class);
final Transaction transaction = pluginRepository.beginTransaction();
try {
final PluginMgmtService pluginMgmtService = beanManager.getReference(PluginMgmtService.class);
pluginMgmtService.refresh(plugins);
transaction.commit();
} catch (final Exception e) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment