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;
// 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