# compress.xz: make reader loop little more readable · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/54f882c4aa49fd79c375374985cc01843d72124c)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 54f882c4aa49fd79c375374985cc01843d72124c

Requested commit: 54f882c4aa49fd79c375374985cc01843d72124c

Commit: 54f882c4aa49fd79c375374985cc01843d72124c

Tree: e219170dbdd44cd4e86c149028928589aa308553

Author: Igor Anić

Committer: Igor Anić

## Message

```
compress.xz: make reader loop little more readable

No need to do same error check on two places. First return all
uncompressed data then on last read check error.

```

## Parents

- [a21f9b6d8b9b027e64795dcdec40494bad76675e](https://git.cafe/gitcafe/zig/commit/a21f9b6d8b9b027e64795dcdec40494bad76675e?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/54f882c4aa49fd79c375374985cc01843d72124c?format=markdown)
