Skip to content

Prefer to explicitly return nil when there is no error for code readability #536

@gmlewis

Description

@gmlewis

A common pattern in this repo is:

if err != nil {
  return ..., err
}
return ..., err

and we would like to change the last return to explicitly return ..., nil for Go readability.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions