Skip to content

Commit

Permalink
Merge pull request #2017 from opencb/TASK-1185
Browse files Browse the repository at this point in the history
TASK-1185
  • Loading branch information
j-coll authored Jun 28, 2022
2 parents a504730 + 7105242 commit 2e75447
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -267,9 +267,10 @@ private void registerVersion(String versionsKey, TaskMetadata.Status status, int
attributes.put(versionsKey, versions);
}
} else {
if (versions.contains(version)) {
int idx = versions.indexOf(version);
if (idx >= 0) {
versions = new ArrayList<>(versions);
versions.remove(version);
versions.remove(idx);
versions.sort(Integer::compareTo);
attributes.put(versionsKey, versions);
}
Expand Down

0 comments on commit 2e75447

Please sign in to comment.