Closed nektro closed 4 years ago
I took a look and found something similar to the following as well:
if condition() {
l = false
} else {
l = false
}
which amounts to an unconditional assignment to l
, making all the preceding assignments ineffectual. I suppose the bug is that one of these two assignments shouldn't exist?
Good point, sorry for the bug.
I noticed the usage here https://goreportcard.com/report/github.com/The-Eye-Team/reddit-dl#ineffassign. In it, I have code very similar to the following..
and ineffassign is labeling the
l = false
lines as ineffectual assigns. I believe this to be a bug. Conversation welcome :)