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 ae74137
Showing 1 changed file with 4 additions and 0 deletions.
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 ae74137

Please sign in to comment.