We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f480e25 commit 178f976Copy full SHA for 178f976
1 file changed
src/ucll/Shared/UnityHub.cs
@@ -86,8 +86,8 @@ public string GetProjectArgs(string projectPath)
86
var root = JsonNode.Parse(json);
87
var project = root?[projectPath]?.AsObject()!;
88
89
- // If you remove args from project in Unity Hub, this field still will exist but now with empty value,
90
- // so we can't guarantee that it has value and we need to check
+ // The cliArgs field persists even when arguments are removed from a project in Unity Hub,
+ // but will contain an empty value. Validation is required before use.
91
string? cliArgs = project["cliArgs"]?.GetValue<string>();
92
93
if (!string.IsNullOrEmpty(cliArgs))
0 commit comments