diff options
Diffstat (limited to 'models/packages/package_version.go')
-rw-r--r-- | models/packages/package_version.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/packages/package_version.go b/models/packages/package_version.go index 78e76c5054..583f832e5e 100644 --- a/models/packages/package_version.go +++ b/models/packages/package_version.go @@ -235,7 +235,7 @@ func (opts *PackageSearchOptions) toConds() builder.Cond { } if !opts.HasFiles.IsNone() { - var filesCond builder.Cond = builder.Exists(builder.Select("package_file.id").From("package_file").Where(builder.Expr("package_file.version_id = package_version.id"))) + filesCond := builder.Exists(builder.Select("package_file.id").From("package_file").Where(builder.Expr("package_file.version_id = package_version.id"))) if opts.HasFiles.IsFalse() { filesCond = builder.Not{filesCond} |