Skip to content

Commit 2dc05c1

Browse files
committed
Update ListUpdateableHelper.java
1 parent 14b1992 commit 2dc05c1

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

src/main/java/org/hydev/mcpm/client/list/ListUpdateableHelper.java

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ public ArrayList<String> listUpdateable(
3636

3737
// Generates a list of PluginVersionStates from the installed plugins obtained
3838
// from the
39-
// SuperLocalPluginTracker instance
39+
// SuperLocalPluginTracker instance. Creates a valid input to
40+
// CheckForUpdatesBoundary
4041

4142
for (PluginTrackerModel installedModel : installedModels) {
4243
PluginVersionId pluginVersionId = new PluginVersionId(
@@ -50,12 +51,12 @@ public ArrayList<String> listUpdateable(
5051

5152
CheckForUpdatesInput input = new CheckForUpdatesInput(temp, false);
5253

54+
CheckForUpdatesResult rawResult = checkForUpdatesBoundary.updates(input);
55+
5356
// Read the list of installedModels and create a CheckForUpdatesInput object
5457
// with state equal
5558
// to the list of PluginTrackerModels's version
5659

57-
CheckForUpdatesResult rawResult = checkForUpdatesBoundary.updates(input);
58-
5960
if (rawResult.state() == CheckForUpdatesResult.State.SUCCESS) {
6061
ArrayList<String> outdatedNames = new ArrayList<>();
6162

@@ -65,15 +66,9 @@ public ArrayList<String> listUpdateable(
6566
outdated.add(pluginModel.getLatestPluginVersion().get().meta().name());
6667
}
6768
return outdatedNames;
68-
69-
// filter the installed plugins by the outdated ids
70-
7169
}
7270

7371
return new ArrayList<>();
74-
// Need to associate the IDs of the outdated plugins with the installed plugin
75-
// YML files, and return all matches
76-
7772
}
7873

7974
}

0 commit comments

Comments
 (0)