Closed ruchikaguptaa closed 4 years ago
The second assignment is followed unconditionally by a return
, so it is indeed ineffectual.
(There is an extra closing brace in the middle of your code, such that it does not quite parse. Please post valid a Go code snippet if you still have an issue.)
@gordonklaus Thanks for pointing that out and sorry for the trouble. I missed that.
The linter complains
ineffectual assignment to dataclientUsingSecondarykey
on second assignment ofdataclientUsingSecondaryKey = true
. But the variable is being used again later on. Looks like bug?