Skip to content

Commit

Permalink
fix: name return values for GetValues in pagination
Browse files Browse the repository at this point in the history
  • Loading branch information
Dorien Grönwald committed Jan 26, 2025
1 parent 626340a commit 82129b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/utils/pagination/pagination.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/green-ecolution/green-ecolution-backend/internal/storage"
)

func GetValues(ctx context.Context) (int32, int32, error) {
func GetValues(ctx context.Context) (page int32, limit int32, err error) {

Check failure on line 11 in internal/utils/pagination/pagination.go

View workflow job for this annotation

GitHub Actions / lint

paramTypeCombine: func(ctx context.Context) (page int32, limit int32, err error) could be replaced with func(ctx context.Context) (page, limit int32, err error) (gocritic)
log := logger.GetLogger(ctx)
page, pageOk := ctx.Value("page").(int32)
limit, limitOK := ctx.Value("limit").(int32)
Expand Down

0 comments on commit 82129b0

Please sign in to comment.