Skip to content
This repository was archived by the owner on Jun 27, 2023. It is now read-only.
This repository was archived by the owner on Jun 27, 2023. It is now read-only.

Missing error checks for os.Setenv in parse_test.go #473

Closed
@antcs

Description

@antcs

Actual behavior A clear and concise description of what the bug is.

Currently errors are ignored for calls to os.Setenv() in parse_test.go. Example:

os.Setenv("GOPATH", goPath)

Expected behavior A clear and concise description of what you expected to
happen.

The errors should be checked and reported properly. If the error is unequal nil the error should be logged via t.Errorf(). I opened a pull request to check the errors: #472

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