Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unnecessary SetRequest calls #1503

Merged
merged 1 commit into from Jul 12, 2023

Conversation

mgjm
Copy link
Contributor

@mgjm mgjm commented Jul 12, 2023

What type of PR is this?

/kind cleanup

What this PR does / why we need it:

A capnp request created with p.NewRequest() is already associated with the params.

Therefore a call to p.SetRequest(req) is not necessary.

Which issue(s) this PR fixes:

None

Special notes for your reviewer:

The SetRequest function was only used in 4 out of 7 requests. The others already work without this call.

Does this PR introduce a user-facing change?

None

Signed-off-by: Martin Michaelis <code@mgjm.de>
@codecov-commenter
Copy link

Codecov Report

Merging #1503 (6e902ef) into main (f132a00) will not change coverage.
The diff coverage is n/a.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1503   +/-   ##
=======================================
  Coverage   34.18%   34.18%           
=======================================
  Files          13       13           
  Lines        1135     1135           
  Branches      392      394    +2     
=======================================
  Hits          388      388           
  Misses        493      493           
  Partials      254      254           

Copy link
Member

@saschagrunert saschagrunert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great cleanup, thank you!
/lgtm

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jul 12, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mgjm, saschagrunert

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-robot openshift-merge-robot merged commit 64b3ae1 into containers:main Jul 12, 2023
29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants