Skip to content

Linter to rewrite err=foo; if err to if err=foo; err #4471

Closed
@grosser

Description

@grosser

Your feature request related to a problem? Please describe.

rewrite

err = foo
if err != nil {

into

if err = foo; err != nil {

so our code looks consistent

Describe the solution you'd like.

automatic reformat

Describe alternatives you've considered.

manually reformatting

Additional context.

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions