code refactoring changes

This commit is contained in:
Shreyas Zare
2023-02-25 13:15:03 +05:30
parent 2c14da3c2e
commit 22d480b4dd

View File

@@ -1033,7 +1033,7 @@ namespace DnsServerCore
{
foreach (string strBlockListUrl in blockListUrlList)
{
if (strBlockListUrl.StartsWith("!"))
if (strBlockListUrl.StartsWith('!'))
{
string strAllowListUrl = strBlockListUrl.Substring(1);
@@ -1062,7 +1062,7 @@ namespace DnsServerCore
foreach (string strBlockListUrl in blockListUrlList)
{
if (strBlockListUrl.StartsWith("!"))
if (strBlockListUrl.StartsWith('!'))
{
Uri allowListUrl = new Uri(strBlockListUrl.Substring(1));