From daa8ed7d0ff1413d8111e2ef435b6b6cfb5d84b5 Mon Sep 17 00:00:00 2001 From: Kenneth Hsu Date: Sun, 18 Nov 2018 16:58:46 -0800 Subject: [PATCH] Remove unnecessary lambda expression. Since the filter is always empty, every folder should be inspected when enumerating the filesystem entries. --- Duplicati/Library/Utility/Utility.cs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/Duplicati/Library/Utility/Utility.cs b/Duplicati/Library/Utility/Utility.cs index 31933660f..f323ea059 100644 --- a/Duplicati/Library/Utility/Utility.cs +++ b/Duplicati/Library/Utility/Utility.cs @@ -152,15 +152,7 @@ namespace Duplicati.Library.Utility /// A list of the full filenames and foldernames. Foldernames ends with the directoryseparator char public static IEnumerable 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); } ///