From ba771e5aea1320446ec0acd1ae65ff12507fafff Mon Sep 17 00:00:00 2001 From: "Collin M. Barrett" Date: Wed, 15 Aug 2018 15:19:38 -0500 Subject: [PATCH] simplify ParseRawRules() --- src/FilterLists.Services/Snapshot/SnapshotDe.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/FilterLists.Services/Snapshot/SnapshotDe.cs b/src/FilterLists.Services/Snapshot/SnapshotDe.cs index 0a8df38e0..1d94a8062 100644 --- a/src/FilterLists.Services/Snapshot/SnapshotDe.cs +++ b/src/FilterLists.Services/Snapshot/SnapshotDe.cs @@ -135,7 +135,7 @@ private static IEnumerable ParseRawRules(string content) var rawRules = content.Split(new[] {"\r\n", "\r", "\n"}, StringSplitOptions.RemoveEmptyEntries); for (var i = 0; i < rawRules.Length; i++) rawRules[i] = rawRules[i].LintRawRule(); - return new HashSet(rawRules.Where(r => r != null)); + return rawRules.Where(r => r != null); } private IEnumerable CreateSnapshotBatches(IEnumerable rawRules) =>