aboutsummaryrefslogtreecommitdiffstats
path: root/routers/api/packages/nuget
diff options
context:
space:
mode:
Diffstat (limited to 'routers/api/packages/nuget')
-rw-r--r--routers/api/packages/nuget/nuget.go8
1 files changed, 1 insertions, 7 deletions
diff --git a/routers/api/packages/nuget/nuget.go b/routers/api/packages/nuget/nuget.go
index f3bc586125..3af7155fae 100644
--- a/routers/api/packages/nuget/nuget.go
+++ b/routers/api/packages/nuget/nuget.go
@@ -376,13 +376,7 @@ func DownloadSymbolFile(ctx *context.Context) {
return
}
- pv, err := packages_model.GetVersionByID(ctx, pfs[0].VersionID)
- if err != nil {
- apiError(ctx, http.StatusInternalServerError, err)
- return
- }
-
- s, _, err := packages_service.GetPackageFileStream(ctx, pv, pfs[0])
+ s, _, err := packages_service.GetPackageFileStream(ctx, pfs[0])
if err != nil {
if err == packages_model.ErrPackageNotExist || err == packages_model.ErrPackageFileNotExist {
apiError(ctx, http.StatusNotFound, err)