Re:Moving from Go to PHP Again
by oconnor663 on Friday February 08, 2019 @01:47PM
(#19117389)
That second example is really surprising. This sort of thing happens all the time in production when lines get moved around. Does anyone know why errcheck misses it?
Not sure about that. But https://github.com/gordonklaus/ineffassign catches that.
how about (taken from here: (https://www.reddit.com/r/programming/comments/ak305l/goodbye...):
err check doesn't complain either