Skip to content

Commit 697cdc2

Browse files
committed
fix whitespace
1 parent 10f3317 commit 697cdc2

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

dotnet/src/webdriver/Proxy.cs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ public Proxy(Dictionary<string, object> settings)
113113
}
114114
else
115115
{
116-
ProxyKind rawType = Enum.Parse<ProxyKind>(proxyType, ignoreCase: true);
116+
ProxyKind rawType = (ProxyKind)Enum.Parse(typeof(ProxyKind), proxyType, ignoreCase: true);
117117
this.Kind = rawType;
118118
}
119119
}
@@ -135,11 +135,14 @@ public Proxy(Dictionary<string, object> settings)
135135
{
136136
bypassAddresses.AddRange(addressesAsString.Split(';'));
137137
}
138-
else if (noProxy is object?[] addressesAsArray)
138+
else
139139
{
140-
foreach (object? address in addressesAsArray)
140+
if (noProxy is object?[] addressesAsArray)
141141
{
142-
bypassAddresses.Add(address?.ToString() ?? throw new ArgumentException("noProxy list contained null element", nameof(settings)));
142+
foreach (object? address in addressesAsArray)
143+
{
144+
bypassAddresses.Add(address?.ToString() ?? throw new ArgumentException("noProxy list contained null element", nameof(settings)));
145+
}
143146
}
144147
}
145148

0 commit comments

Comments
 (0)