Skip to content

Commit

Permalink
Rename variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahelsaig committed May 8, 2024
1 parent 5800d7b commit 0f74d1a
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -167,11 +167,11 @@ private string ConvertJsonArray(JsonArray jArray, int indentationDepth)
return stringArrayCodeBuilder.ToString();
}

private string ConvertJsonObject(JsonObject jObject, int indentationDepth)
private string ConvertJsonObject(JsonObject jsonObject, int indentationDepth)
{
var braceIndentation = new string(' ', indentationDepth);
var propertyIndentation = new string(' ', indentationDepth + IndentationDepth);
if (jObject["name"] is { } name && jObject["value"] is { } value)
if (jsonObject["name"] is { } name && jsonObject["value"] is { } value)
{
var objectCodeBuilder = new StringBuilder();
objectCodeBuilder.AppendLine(CultureInfo.InvariantCulture, $"{braceIndentation}new ListValueOption");
Expand All @@ -184,7 +184,7 @@ private string ConvertJsonObject(JsonObject jObject, int indentationDepth)
}

// Using a quoted string so it doesn't mess up the syntax highlighting of the rest of the code.
return T["\"FIX ME! Couldn't determine the actual type to instantiate.\" {0}", jObject.ToString()];
return T["\"FIX ME! Couldn't determine the actual type to instantiate.\" {0}", jsonObject.ToString()];
}

private void AddSettingsWithout<T>(StringBuilder codeBuilder, JsonObject settings, int indentationDepth = IndentationDepth)
Expand Down

0 comments on commit 0f74d1a

Please sign in to comment.