Go

Go

By DeepSource

Self-assignment of variables SCC-SA4018

Anti-pattern
Autofix

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

Examples

Bad practice

x = x