Closed tanji closed 8 years ago
f
is assigned (f = true
) and then not used (unless it is used on a line beyond what you've posted). Maybe you meant to declare f
outside the loop? Or meant to write for server.State == ...
instead of if server.State == ...
?
You are right, f should have been declared outside the loop... Sorry for missing that obvious one :(
Example from my code:
Error message: f assigned and not used (ineffassign)
f has already been assigned in the outer loop so error should not happen when f is set to true.