Skip to content

Commit

Permalink
fix: wrong var
Browse files Browse the repository at this point in the history
Signed-off-by: Vishal Choudhary <[email protected]>
  • Loading branch information
vishal-chdhry committed Jul 4, 2024
1 parent e709689 commit d5733ae
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pkg/api/cephr.go
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ func (c *cephrStore) Watch(ctx context.Context, options *metainternalversion.Lis
events := make([]watch.Event, len(list.Items))
for i, pol := range list.Items {
report := pol.DeepCopy()
if pol.Generation == 1 || pol.Generation == 0 {
if report.Generation == 1 || report.Generation == 0 {
events[i] = watch.Event{
Type: watch.Added,
Object: report,
Expand Down
2 changes: 1 addition & 1 deletion pkg/api/cpolr.go
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ func (c *cpolrStore) Watch(ctx context.Context, options *metainternalversion.Lis
events := make([]watch.Event, len(list.Items))
for i, pol := range list.Items {
report := pol.DeepCopy()
if pol.Generation == 1 || pol.Generation == 0 {
if report.Generation == 1 || report.Generation == 0 {
events[i] = watch.Event{
Type: watch.Added,
Object: report,
Expand Down
2 changes: 1 addition & 1 deletion pkg/api/ephr.go
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ func (p *ephrStore) Watch(ctx context.Context, options *metainternalversion.List
events := make([]watch.Event, len(list.Items))
for i, pol := range list.Items {
report := pol.DeepCopy()
if pol.Generation == 1 || pol.Generation == 0 {
if report.Generation == 1 || report.Generation == 0 {
events[i] = watch.Event{
Type: watch.Added,
Object: report,
Expand Down
2 changes: 1 addition & 1 deletion pkg/api/polr.go
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ func (p *polrStore) Watch(ctx context.Context, options *metainternalversion.List
events := make([]watch.Event, len(list.Items))
for i, pol := range list.Items {
report := pol.DeepCopy()
if pol.Generation == 1 || pol.Generation == 0 {
if report.Generation == 1 || report.Generation == 0 {
events[i] = watch.Event{
Type: watch.Added,
Object: report,
Expand Down

0 comments on commit d5733ae

Please sign in to comment.