Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove err conditional that was never met
gopls correctly pointed out that the err==nil check was never met, as err was assigned and we returned early when err!=nil. This was an oversight when I wrote this; when Encode fails, we shouldn't return, because we still want to close the file. We don't defer because we want to check the error; explain that.
- Loading branch information