Skip to content
This repository was archived by the owner on Jan 20, 2026. It is now read-only.

Commit e10c472

Browse files
fix
1 parent 0e142e9 commit e10c472

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Optimizer/HostsHelper.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ internal static void SaveHosts(string[] lines)
7979
{
8080
for (int i = 0; i < lines.Length; i++)
8181
{
82-
if (!lines[i].StartsWith('#') && (!string.IsNullOrEmpty(lines[i])))
82+
if (!lines[i].StartsWith("#") && (!string.IsNullOrEmpty(lines[i])))
8383
{
8484
lines[i] = SanitizeEntry(lines[i]);
8585
}
@@ -106,7 +106,7 @@ internal static List<string> GetHostsEntries()
106106

107107
foreach (string line in lines)
108108
{
109-
if (!line.StartsWith('#') && (!string.IsNullOrEmpty(line)))
109+
if (!line.StartsWith("#") && (!string.IsNullOrEmpty(line)))
110110
{
111111
entries.Add(line.Replace(" ", " : "));
112112
}

0 commit comments

Comments
 (0)