Skip to content

defer raises 'return value not checked' #18

@StyXman

Description

@StyXman
internal/cert/utils.go:72:16: Error return value of `cmd.Wait` is not checked (errcheck)
        defer cmd.Wait()
                      ^

I think this is a bug, since defer will check the error status. See https://golang.org/ref/spec#Defer_statements

If a deferred function value evaluates to nil, execution panics.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions