mirror of
https://github.com/facebook/zstd
synced 2026-08-22 22:32:07 -04:00
Included suggestion from @neheb
This commit is contained in:
parent
a8b544d460
commit
9215de52c7
1 changed files with 2 additions and 2 deletions
|
|
@ -322,7 +322,7 @@ Options::Status Options::parse(int argc, const char **argv) {
|
|||
g_utilDisplayLevel = verbosity;
|
||||
// Remove local input files that are symbolic links
|
||||
if (!followLinks) {
|
||||
std::ignore = std::remove_if(localInputFiles.begin(), localInputFiles.end(),
|
||||
localInputFiles.erase(std::remove_if(localInputFiles.begin(), localInputFiles.end(),
|
||||
[&](const char *path) {
|
||||
bool isLink = UTIL_isLink(path);
|
||||
if (isLink && verbosity >= 2) {
|
||||
|
|
@ -332,7 +332,7 @@ Options::Status Options::parse(int argc, const char **argv) {
|
|||
path);
|
||||
}
|
||||
return isLink;
|
||||
});
|
||||
}), localInputFiles.end());
|
||||
}
|
||||
|
||||
// Translate input files/directories into files to (de)compress
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue