Skip to content

Warn on redundant update #10476

Closed
Closed
@ndmitchell

Description

@ndmitchell

What it does

If your update changes no fields, e.g. MyRecord {..value} then the update is providing very little value, and value directly would be better.

Lint Name

redundant_update

Category

style

Advantage

  • Simpler.

Drawbacks

No response

Example

MyRecord { ..value}

Could be written as:

value

Metadata

Metadata

Assignees

Labels

A-lintArea: New lints

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions