Cleaned up if statement

I think you guys are doing great work! Keep it up.
I think you want:

```
if _, err := io.Copy(file, unit.Serialize(opts)); err != nil {
```