Remove this useless assignment to local variable Sonarqube
What you will learn here about Sonarqube
- Remove this useless assignment to local variable
Remove this useless assignment to local variable Sonarqube
On Sonarqube remove this useless assignment to local variable issue comes when we have assigned value to variable but that variable is nowhere used in the code which is shown below
Solution is very simple, we just have to remove unused lines from our code