Yeah, just confirmed, you'll never get `err == nil` with `n == 0`, so you can just check the error and remove the `if n > 0`.