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

Fix issues found by staticcheck #1537

Merged
merged 2 commits into from
Aug 2, 2017
Merged

Fix issues found by staticcheck #1537

merged 2 commits into from
Aug 2, 2017

Commits on Jul 28, 2017

  1. libcontainer: handle error cases

    Handle err return value of fmt.Scanf, os.Pipe and unix.ParseUnixRights.
    
    Found with honnef.co/go/tools/cmd/staticcheck
    
    Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
    tklauser committed Jul 28, 2017
    Configuration menu
    Copy the full SHA
    24a4273 View commit details
    Browse the repository at this point in the history
  2. libcontainer: remove ineffective break statements

    go's switch statement doesn't need an explicit break. Remove it where
    that is the case and add a comment to indicate the purpose where the
    removal would lead to an empty case.
    
    Found with honnef.co/go/tools/cmd/staticcheck
    
    Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
    tklauser committed Jul 28, 2017
    Configuration menu
    Copy the full SHA
    e4e56cb View commit details
    Browse the repository at this point in the history