Skip to content

Commit

Permalink
Merge pull request #205 from SkyEric/master
Browse files Browse the repository at this point in the history
Code optimization
  • Loading branch information
wangyupeng1-iri authored Jul 14, 2017
2 parents ea44394 + d856598 commit d8142d7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -995,8 +995,8 @@ final boolean isNewOrUpdatedPlugin(PluginInfo info) {
// 2. 要安装的版本比当前的要高,且未运行
// 3. "待定更新"插件(插件未运行)
return p == null ||
(p.mInfo.getVersionValue() < info.getVersionValue() && !RePlugin.isPluginRunning(p.mInfo.getName())) ||
(info.getPendingUpdate() != null && RePlugin.isPluginRunning(info.getName()));
(p.mInfo.getVersionValue() < info.getVersionValue() && !RePlugin.isPluginRunning(info.getName())) ||
(info.getPendingUpdate() != null && !RePlugin.isPluginRunning(info.getName()));
}

final Plugin loadPackageInfoPlugin(String plugin, IPluginManager pm) {
Expand Down

0 comments on commit d8142d7

Please sign in to comment.