aboutsummaryrefslogtreecommitdiffstats
path: root/routers/api/packages/composer/composer.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/api/packages/composer/composer.go')
-rw-r--r--routers/api/packages/composer/composer.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/api/packages/composer/composer.go b/routers/api/packages/composer/composer.go
index 40f72f6484..c6c14e5cf4 100644
--- a/routers/api/packages/composer/composer.go
+++ b/routers/api/packages/composer/composer.go
@@ -176,7 +176,7 @@ func DownloadPackageFile(ctx *context.Context) {
},
)
if err != nil {
- if err == packages_model.ErrPackageNotExist || err == packages_model.ErrPackageFileNotExist {
+ if errors.Is(err, packages_model.ErrPackageNotExist) || errors.Is(err, packages_model.ErrPackageFileNotExist) {
apiError(ctx, http.StatusNotFound, err)
return
}