simplify ParseRawRules()

This commit is contained in:
Collin M. Barrett 2018-08-15 15:19:38 -05:00
parent b5f4200ca5
commit ba771e5aea

View file

@ -135,7 +135,7 @@ private static IEnumerable<string> 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<string>(rawRules.Where(r => r != null));
return rawRules.Where(r => r != null);
}
private IEnumerable<SnapshotDeBatch> CreateSnapshotBatches(IEnumerable<string> rawRules) =>