Skip to content

Commit 015a6ec

Browse files
committed
Ensure no duplicate is returned
1 parent 604594a commit 015a6ec

File tree

1 file changed

+1
-0
lines changed
  • adoptium-frontend-parent/adoptium-api-v3-frontend/src/main/kotlin/net/adoptium/api/v3/routes/info

1 file changed

+1
-0
lines changed

adoptium-frontend-parent/adoptium-api-v3-frontend/src/main/kotlin/net/adoptium/api/v3/routes/info/ReleaseListResource.kt

+1
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ constructor(
151151
semver
152152
)
153153
.map { it.release_name }
154+
.distinct()
154155

155156
val pagedReleases = getPage(pageSize, page, releases, showPageCount ?: false)
156157

0 commit comments

Comments
 (0)