mirror of
https://github.com/facebook/zstd.git
synced 2024-10-23 08:44:28 +08:00
Included suggestion from @neheb
This commit is contained in:
parent
a8b544d460
commit
9215de52c7
@ -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…
Reference in New Issue
Block a user