Skip to content

Commit

Permalink
Don't copy nil params
Browse files Browse the repository at this point in the history
Signed-off-by: Dimitar Dimitrov <[email protected]>
  • Loading branch information
dimitarvdimitrov committed Dec 16, 2024
1 parent b9fdb96 commit fccb51d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/storage/lazyquery/lazyquery.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ func (l LazyQuerier) Select(ctx context.Context, selectSorted bool, params *stor
}

func copyParams(params *storage.SelectHints) *storage.SelectHints {
if params == nil {
return nil
}
copiedParams := *params
copiedParams.Grouping = slices.Clone(params.Grouping)

Expand Down

0 comments on commit fccb51d

Please sign in to comment.