Skip to content

Commit

Permalink
fix: add braces around if branch
Browse files Browse the repository at this point in the history
  • Loading branch information
kimmywork committed Dec 20, 2024
1 parent cd1f6c1 commit 1095865
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dotnet/global.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"sdk": {
"version": "8.0.401",
"version": "9.0.100",
"rollForward": "latestMinor"
}
}
4 changes: 4 additions & 0 deletions dotnet/src/AutoGen/LMStudioConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ public LMStudioConfig(string host, int port, string modelName)
this.Port = port;
this.Uri = new Uri($"http://{host}:{port}/v1");
if (modelName == null)
{
throw new ArgumentNullException("modelName is a required property for LMStudioConfig and cannot be null");
}
this.ModelName = modelName;
}

Expand All @@ -29,7 +31,9 @@ public LMStudioConfig(Uri uri, string modelName)
this.Host = uri.Host;
this.Port = uri.Port;
if (modelName == null)
{
throw new ArgumentNullException("modelName is a required property for LMStudioConfig and cannot be null");
}
this.ModelName = modelName;
}

Expand Down

0 comments on commit 1095865

Please sign in to comment.