That function does not have side effects, so it would be pointless to remove the assignment altogether.
Assigning errors to underscore is effectively the same as try { myFunc(); } except { pass; }, making them equivalent.
Assigning errors to underscore is effectively the same as try { myFunc(); } except { pass; }, making them equivalent.
[1] https://play.golang.org/p/igdUx6qckf
[2] https://play.golang.org/p/_JW5QE_zOJ