1
0
mirror of https://github.com/facebook/zstd.git synced 2025-07-14 19:41:06 +03:00

Included suggestion from @neheb

This commit is contained in:
inventor500
2024-09-25 10:21:20 -05:00
committed by Nick Terrell
parent a8b544d460
commit 9215de52c7

View File

@ -322,7 +322,7 @@ Options::Status Options::parse(int argc, const char **argv) {
g_utilDisplayLevel = verbosity; g_utilDisplayLevel = verbosity;
// Remove local input files that are symbolic links // Remove local input files that are symbolic links
if (!followLinks) { if (!followLinks) {
std::ignore = std::remove_if(localInputFiles.begin(), localInputFiles.end(), localInputFiles.erase(std::remove_if(localInputFiles.begin(), localInputFiles.end(),
[&](const char *path) { [&](const char *path) {
bool isLink = UTIL_isLink(path); bool isLink = UTIL_isLink(path);
if (isLink && verbosity >= 2) { if (isLink && verbosity >= 2) {
@ -332,7 +332,7 @@ Options::Status Options::parse(int argc, const char **argv) {
path); path);
} }
return isLink; return isLink;
}); }), localInputFiles.end());
} }
// Translate input files/directories into files to (de)compress // Translate input files/directories into files to (de)compress