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

Add missing return after utils.Error() #17364

Merged
merged 1 commit into from
Feb 7, 2023

Conversation

eriksjolund
Copy link
Contributor

@eriksjolund eriksjolund commented Feb 4, 2023

Signed-off-by: Erik Sjölund [email protected]

Does this PR introduce a user-facing change?

None

[NO NEW TESTS NEEDED}

@github-actions github-actions bot added the kind/api-change Change to remote API; merits scrutiny label Feb 4, 2023
@baude
Copy link
Member

baude commented Feb 4, 2023

/approve

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Feb 4, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: baude, eriksjolund

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-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 4, 2023
@baude
Copy link
Member

baude commented Feb 4, 2023

@eriksjolund TYVM!

@baude
Copy link
Member

baude commented Feb 4, 2023

LGTM

@baude baude added 4.4 and removed kind/api-change Change to remote API; merits scrutiny labels Feb 4, 2023
@baude
Copy link
Member

baude commented Feb 4, 2023

I removed the API change label as it does not impact the API but rather is a bug fix on both accounts.

@eriksjolund
Copy link
Contributor Author

@baude In the PR I added another possible missing return. (I hope you noticed that)

Does this PR introduce a user-facing change?

I wrote "none". Please advice me if something else should be written as user-facing change.

@baude
Copy link
Member

baude commented Feb 4, 2023

I did see it; LGTM. But that is why it takes 2 reviewers to merge stuff.

@eriksjolund
Copy link
Contributor Author

eriksjolund commented Feb 5, 2023

But that is why it takes 2 reviewers to merge stuff.

That's a good thing. (Reducing the chance for mistakes).

I added 8 more "missing return" candidates.

@github-actions github-actions bot added the kind/api-change Change to remote API; merits scrutiny label Feb 5, 2023
@Luap99
Copy link
Member

Luap99 commented Feb 6, 2023

Sounds like we could need a linter for this. Very easy to miss in review otherwise.

You have to add [NO NEW TESTS NEEDED] to your commit message to pass CI. Change LGTM

@eriksjolund
Copy link
Contributor Author

Sounds like we could need a linter for this.

Yes, it would be great if such missing returns could be caught automatically.

I added [NO NEW TESTS NEEDED] to the commit message.

@rhatdan
Copy link
Member

rhatdan commented Feb 6, 2023

LGTM
Could you rebase your commit, to fix the CI/CD system.

Add missing return after utils.Error(),
utils.InternalServerError(), utils.BadRequest().

[NO NEW TESTS NEEDED]

Signed-off-by: Erik Sjölund <[email protected]>
@eriksjolund
Copy link
Contributor Author

Now rebased.

@rhatdan
Copy link
Member

rhatdan commented Feb 6, 2023

/cherry-pick v4.4

@openshift-cherrypick-robot
Copy link
Collaborator

@rhatdan: once the present PR merges, I will cherry-pick it on top of v4.4 in a new PR and assign it to you.

In response to this:

/cherry-pick v4.4

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@baude
Copy link
Member

baude commented Feb 7, 2023

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Feb 7, 2023
@openshift-merge-robot openshift-merge-robot merged commit dcbe018 into containers:main Feb 7, 2023
@openshift-cherrypick-robot
Copy link
Collaborator

@rhatdan: new pull request created: #17390

In response to this:

/cherry-pick v4.4

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@eriksjolund eriksjolund deleted the add_return branch July 10, 2023 15:43
@github-actions github-actions bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Oct 9, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 9, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. kind/api-change Change to remote API; merits scrutiny lgtm Indicates that a PR is ready to be merged. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. release-note-none
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants