mirror of
https://github.com/facebook/zstd.git
synced 2025-07-29 11:21:22 +03:00
removed double if statements for same condition
This commit is contained in:
@ -960,11 +960,9 @@ static int getFileInfo(fileInfo_t* info, const char* inFileName){
|
||||
/* check if checksum is used */
|
||||
BYTE const frameHeaderDescriptor = headerBuffer[4];
|
||||
int const contentChecksumFlag = (frameHeaderDescriptor & (1 << 2)) >> 2;
|
||||
if (contentChecksumFlag) {
|
||||
info->usesCheck = 1;
|
||||
}
|
||||
if (contentChecksumFlag) {
|
||||
int const ret = fseek(srcFile, 4, SEEK_CUR);
|
||||
info->usesCheck = 1;
|
||||
if (ret != 0) {
|
||||
DISPLAY("Error: could not skip past checksum\n");
|
||||
detectError = 1;
|
||||
|
Reference in New Issue
Block a user