Remove unnecessary lambda expression.

Since the filter is always empty, every folder should be inspected when
enumerating the filesystem entries.
This commit is contained in:
Kenneth Hsu
2018-11-18 16:58:46 -08:00
parent fb7ddf59f2
commit daa8ed7d0f
+1 -9
View File
@@ -152,15 +152,7 @@ namespace Duplicati.Library.Utility
/// <returns>A list of the full filenames and foldernames. Foldernames ends with the directoryseparator char</returns>
public static IEnumerable<string> EnumerateFileSystemEntries(string basepath)
{
IFilter filter = new FilterExpression();
return EnumerateFileSystemEntries(basepath, (rootpath, path, attributes) => {
if (!filter.Matches(path, out var result, out _))
{
result = true;
}
return result;
});
return EnumerateFileSystemEntries(basepath, (rootpath, path, attributes) => true);
}
/// <summary>