Skip to content

bastianccm/errifinline

Repository files navigation

errifinline

Go linter to check if single error assignments are inline.

Google | Uber

Install

go install github.com/bastianccm/errifinline/cmd/errifinline@latest

Usage

errifinline ./...

Example

err := something()
if err != nil {  // this should inline _, err := something()...
    ...
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages