Skip to content

Commit

Permalink
fix(postgres): return empty map instead of nil
Browse files Browse the repository at this point in the history
Signed-off-by: RTann <[email protected]>
  • Loading branch information
RTann committed Dec 19, 2023
1 parent a2cb548 commit 9210797
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datastore/postgres/getupdateoperations.go
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ func (s *MatcherStore) GetUpdateOperations(ctx context.Context, kind driver.Upda
switch {
case err == nil:
case errors.Is(err, pgx.ErrNoRows):
return nil, nil
return out, nil
default:
return nil, fmt.Errorf("failed to get distinct updates: %w", err)
}
Expand Down

0 comments on commit 9210797

Please sign in to comment.