tukaani-project / xz

XZ Utils
https://tukaani.org/xz/
Other
542 stars 101 forks source link

xz: Refactor duplicated check for custom suffix when using --format=raw #13

Closed JiaT75 closed 1 year ago

JiaT75 commented 1 year ago

Pull request checklist

Please check if your PR fulfills the following requirements:

Pull request type

Please check the type of change your PR introduces: - [ ] Bugfix - [ ] Feature - [ ] Code style update (formatting, renaming, typo fix) - [X] Refactoring (no functional changes, no api changes) - [ ] Build related changes - [ ] Documentation content changes - [ ] Other (please describe): ## What is the current behavior?

There were duplicated checks for a custom suffix set when using --format=raw in both the encoder and decoder.

Related Issue URL:

What is the new behavior?

Does this introduce a breaking change?

Other information