Skip to content

Commit 38114b5

Browse files
committed
Remove redundant spaces from queryString
1 parent fa86bc4 commit 38114b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

IPConfig/Helpers/NetworkManagement.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ public static bool IsDhcpEnabled(string nicId)
145145
public static bool IsPhysicalAdapter(string nicId)
146146
{
147147
using var searcher = new ManagementObjectSearcher(@"root\CIMV2",
148-
@$"SELECT * FROM Win32_NetworkAdapter WHERE GUID='{nicId}' AND NOT PNPDeviceID LIKE 'ROOT\\%'");
148+
@$"SELECT * FROM Win32_NetworkAdapter WHERE GUID='{nicId}' AND NOT PNPDeviceID LIKE 'ROOT\\%'");
149149

150150
var managementObject = searcher.Get().OfType<ManagementObject>().FirstOrDefault();
151151
bool isPhysical = Convert.ToBoolean(managementObject?.Properties["PhysicalAdapter"].Value);

0 commit comments

Comments
 (0)