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

clean up : fix staticcheck warnings #681

Merged
merged 2 commits into from
Jul 3, 2019

Conversation

mars1024
Copy link
Member

ref to #642

try to fix some warnings generated by staticcheck

Copy link
Contributor

@bboreham bboreham left a comment

Choose a reason for hiding this comment

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

lgtm; one nit.

@@ -32,7 +32,7 @@ type inherited struct{}

var inheritArgsFromEnv inherited

func (_ *inherited) AsEnv() []string {
func (i *inherited) AsEnv() []string {
Copy link
Contributor

Choose a reason for hiding this comment

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

the recommendation from staticcheck is "omit the name if it is unused"

Copy link
Member Author

Choose a reason for hiding this comment

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

Updated, thanks! @bboreham

@dcbw
Copy link
Member

dcbw commented Jun 26, 2019

/lgtm

Copy link
Member

@jellonek jellonek left a comment

Choose a reason for hiding this comment

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

LGTM

@matthewdupre matthewdupre merged commit dc71cd2 into containernetworking:master Jul 3, 2019
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.

5 participants