Fix incorrect usage of slices.Compact (fixes #257)

This commit is contained in:
comp500 2023-09-23 21:52:23 +01:00 committed by GitHub
parent 9889b48b0d
commit ef049968b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -288,7 +288,7 @@ func installVersion(project *modrinthApi.Project, version *modrinthApi.Version,
// Clean up duplicates from dep queue (from deps on both QFAPI + FAPI) // Clean up duplicates from dep queue (from deps on both QFAPI + FAPI)
slices.Sort(depProjectIDPendingQueue) slices.Sort(depProjectIDPendingQueue)
slices.Compact(depProjectIDPendingQueue) depProjectIDPendingQueue = slices.Compact(depProjectIDPendingQueue)
if len(depProjectIDPendingQueue) == 0 { if len(depProjectIDPendingQueue) == 0 {
break break