It possible overwrites a concrete error with nil. In such case, we will lose a chance to detect errors at the writer func. For now, as @itchyny said, I make this place not to capture a return value by Close() if err is already set.
https://github.com/reproio/columnify/pull/18#discussion_r449481507
It possible overwrites a concrete error with
nil
. In such case, we will lose a chance to detect errors at the writer func. For now, as @itchyny said, I make this place not to capture a return value byClose()
iferr
is already set. https://github.com/reproio/columnify/pull/18#discussion_r449481507