Skip to content

Commit 0742e3e

Browse files
committed
fix whitespace
1 parent cebf1d2 commit 0742e3e

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

dotnet/src/webdriver/HttpCommandInfo.cs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -112,22 +112,22 @@ private static string GetCommandPropertyValue(string propertyName, Command comma
112112
// Strip the curly braces
113113
propertyName = propertyName.Substring(1, propertyName.Length - 2);
114114

115-
if (propertyName == SessionIdPropertyName)
115+
if (propertyName == SessionIdPropertyName)
116+
{
117+
if (commandToExecute.SessionId != null)
116118
{
117-
if (commandToExecute.SessionId != null)
118-
{
119-
propertyValue = commandToExecute.SessionId.ToString();
120-
}
119+
propertyValue = commandToExecute.SessionId.ToString();
121120
}
122-
else if (commandToExecute.HasParameters())
121+
}
122+
else if (commandToExecute.HasParameters())
123+
{
124+
// Extract the URL parameter, and remove it from the parameters dictionary
125+
// so it doesn't get transmitted as a JSON parameter.
126+
if (commandToExecute.TryGetValueAndRemoveIfNotNull(propertyName, out var propertyValueObject))
123127
{
124-
// Extract the URL parameter, and remove it from the parameters dictionary
125-
// so it doesn't get transmitted as a JSON parameter.
126-
if (commandToExecute.TryGetValueAndRemoveIfNotNull(propertyName, out var propertyValueObject))
127-
{
128-
propertyValue = propertyValueObject.ToString()!;
129-
}
128+
propertyValue = propertyValueObject.ToString()!;
130129
}
130+
}
131131

132132
return propertyValue;
133133
}

0 commit comments

Comments
 (0)