since we always set `sync = true` at the end of this case, it's functionally the same to write this as:

```go
if f.needsFileRotate() {
    if *skipEmptyFiles {
        closeFile = true
    } else { 
        f.updateFile()
    }
}
sync = true
```