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.pull/846/head
parent
d2beda1f00
commit
52d436d38a
Loading…
Reference in New Issue