Skip to content

Commit a294142

Browse files
committed
fix lint
1 parent fb79731 commit a294142

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

models/packages/nuget/search.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ func SearchVersions(ctx context.Context, opts *packages_model.PackageSearchOptio
3333
Where(cond).
3434
OrderBy("package.name ASC")
3535
if opts.Paginator != nil {
36-
skip, take := opts.GetSkipTake()
36+
skip, take := opts.Paginator.GetSkipTake()
3737
inner = inner.Limit(take, skip)
3838
}
3939

routers/web/shared/packages/packages.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ func SetRulePreviewContext(ctx *context.Context, owner *user_model.User) {
177177
} else if skip {
178178
continue
179179
}
180+
180181
toMatch := pv.LowerVersion
181182
if pcr.MatchFullName {
182183
toMatch = p.LowerName + "/" + pv.LowerVersion
@@ -190,6 +191,7 @@ func SetRulePreviewContext(ctx *context.Context, owner *user_model.User) {
190191
if pcr.RemovePatternMatcher != nil && !pcr.RemovePatternMatcher.MatchString(toMatch) {
191192
continue
192193
}
194+
193195
pd, err := packages_model.GetPackageDescriptor(ctx, pv)
194196
if err != nil {
195197
ctx.ServerError("GetPackageDescriptor", err)

0 commit comments

Comments
 (0)