Go

Go

By DeepSource

Self-assignment of variablesSCC-SA4018

Anti-pattern
Has Autofix

Self-assignment of variables is pointless and should be avoided.

Examples

Bad practice

x = x