gordonklaus / ineffassign

Detect ineffectual assignments in Go code.
MIT License
394 stars 22 forks source link

Support to catch ineffassign in terminated block. #34

Closed liulishuo-jjl closed 5 years ago

gordonklaus commented 5 years ago

Sorry for the slow reply. Thanks for the PR, but this should be solved by terminating the block at the return statement (i.e., not giving it any more ops or children), which I've done in 8863c8f9d746c0e28d65c1bc46c8d3aa8ab1ee82.