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

int/types: rm NewDefaultConfig #191

Merged
merged 1 commit into from
Jun 4, 2024

Conversation

kolyshkin
Copy link
Contributor

The NewDefaultConfig method has a few issues:

  • its name is misleading (it does not create a new object);
  • it is only used in tests (and thus do not belong to non-test codebase);
  • it has quite a few inits that are redundant.

Remove it, and add a simple init right to the test case. We can move it
out to a separate function in test later if need arises.

The NewDefaultConfig method has a few issues:
 - its name is misleading (it does not create a new object);
 - it is only used in tests (and thus do not belong to non-test codebase);
 - it has quite a few inits that are redundant.

 Remove it, and add a simple init right to the test case. We can move it
 out to a separate function in test later if need arises.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
@openshift-ci openshift-ci bot requested review from mrunalp and rphillips June 3, 2024 22:14
@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 3, 2024
Copy link
Contributor

openshift-ci bot commented Jun 3, 2024

@kolyshkin: all tests passed!

Full PR test history. Your PR dashboard.

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-sigs/prow repository. I understand the commands that are listed here.

Copy link
Contributor

@rhmdnd rhmdnd left a comment

Choose a reason for hiding this comment

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

/lgtm

Thanks for pulling this into a separate change.

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Jun 4, 2024
Copy link
Contributor

openshift-ci bot commented Jun 4, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: kolyshkin, rhmdnd

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-bot openshift-merge-bot bot merged commit 6ed1fcb into openshift:main Jun 4, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants