Skip to content

Commit ea82819

Browse files
committed
refactor
1 parent 3989905 commit ea82819

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Diff for: tools/LinkDotNet.Blog.CriticalCSS/Generator.cs

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
using AngleSharp.Diffing.Extensions;
12
using Microsoft.Playwright;
23

34
namespace LinkDotNet.Blog.CriticalCSS;
@@ -106,10 +107,7 @@ function processRule(rule) {
106107
}
107108
""");
108109

109-
foreach (var css in usedCss)
110-
{
111-
criticalCss.Add(css);
112-
}
110+
criticalCss.AddRange(usedCss);
113111
}
114112
}
115113

0 commit comments

Comments
 (0)