Skip to content
This repository was archived by the owner on Apr 3, 2018. It is now read-only.

network: Fix lint errors - #649

Merged
sboeuf merged 1 commit into
containers:masterfrom
jodh-intel:fix-lint-errors
Mar 2, 2018
Merged

sboeuf merged 1 commit into
containers:masterfrom
jodh-intel:fix-lint-errors

Conversation

@jodh-intel

Copy link
Copy Markdown
Collaborator

Fix errors detected by .ci/go-lint.sh.

Fixes #648.

Signed-off-by: James O. D. Hunt james.o.hunt@intel.com

Fix variable scoping errors detected by `.ci/go-lint.sh` which caused
setting the `err` variable to be redundant as *that* `error` went out
of scope when the intent was to return the `error` as the return value
of the anonymous function passed to `doNetNS()`.

Fixes containers#648.

Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>

@grahamwhaley grahamwhaley left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

works for me - errors gone.
lgtm

@sboeuf

sboeuf commented Mar 1, 2018 •

Copy link
Copy Markdown
Collaborator

lgtm

Approved with PullApprove Approved with PullApprove

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants