Skip to content

redundant-conversion

Detect conversions to the value's existing type.

Updated View as Markdown

Default severity: warning

An exact same-type conversion cannot change a value or its method set. Remove it to make the type flow clearer.

Bad

normalized := UserID(existingUserID)

Good

normalized := UserID(rawID)
Navigation

Type to search…

↑↓ navigate↵ selectEsc close