Improve comment, remove duplicated header and extraneous braces.
@@ -14,7 +14,6 @@ Archive Get File
#include "info/infoArchive.h"
#include "postgres/interface.h"
#include "storage/helper.h"
-#include "storage/helper.h"
/***********************************************************************************************************************************
Check if a WAL file exists in the repository
@@ -157,11 +156,9 @@ archiveGetFile(
cipherBlockNew(cipherModeDecrypt, cipherType, bufNewStr(archiveGetCheckResult.cipherPass), NULL)));
}
- // If file is gzipped then add the decompression filter
+ // If file is compressed then add the decompression filter
if (strEndsWithZ(archiveGetCheckResult.archiveFileActual, "." GZIP_EXT))
- {
ioFilterGroupAdd(filterGroup, gzipDecompressFilter(gzipDecompressNew(false)));
- }
ioWriteFilterGroupSet(storageFileWriteIo(destination), filterGroup);
