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

reused dead NewMemstore() function #8680

Merged
merged 1 commit into from
Sep 13, 2018

Conversation

stewart-yu
Copy link
Contributor

@stewart-yu stewart-yu commented Sep 13, 2018

should not reconstruct a new Memstore objective, and NewMemstore() function is dead function,

@@ -75,7 +75,7 @@ func (e *ConfigErrors) Append(field string, err error) *ConfigErrors {

// Error returns a string representation of the configuration error.
func (e ConfigError) Error() string {
return fmt.Sprintf("%s: %s", e.Field, e.Underlying)
return fmt.Sprintf("%s: %s", e.Field, e.Underlying.Error())
Copy link
Member

Choose a reason for hiding this comment

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

This is unnecessary , because exist of func (e ConfigError) String() string {

@stewart-yu stewart-yu closed this Sep 13, 2018
@stewart-yu stewart-yu reopened this Sep 13, 2018
@stewart-yu stewart-yu changed the title transfer Error() to get error string reused dead NewMemstore() function Sep 13, 2018
@hzxuzhonghu
Copy link
Member

/ok-to-test

@stewart-yu
Copy link
Contributor Author

/test istio-unit-tests

@istio-testing
Copy link
Collaborator

@stewart-yu: The following test failed, say /retest to rerun them all:

Test name Commit Details Rerun command
prow/istio-unit-tests.sh 641b83a link /test istio-unit-tests

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

@hzxuzhonghu
Copy link
Member

/lgtm

@ozevren
Copy link
Contributor

ozevren commented Sep 13, 2018

/lgtm
/approve

@istio-testing
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: hzxuzhonghu, ozevren

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

@istio-testing istio-testing merged commit 357d74d into istio:master Sep 13, 2018
@stewart-yu stewart-yu deleted the stewart-istio-codeclean03 branch September 14, 2018 00:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants