Skip to content

Commit 63f75e9

Browse files
pr feedback
1 parent 1663ca8 commit 63f75e9

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

codegen/generator/src/OpenAILibraryGenerator.cs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,8 @@ namespace OpenAILibraryPlugin
1010
[ExportMetadata("GeneratorName", nameof(OpenAILibraryGenerator))]
1111
public class OpenAILibraryGenerator : ScmCodeModelGenerator
1212
{
13-
private static OpenAILibraryGenerator? s_instance;
14-
internal static new OpenAILibraryGenerator Instance => s_instance ?? throw new InvalidOperationException("OpenAILibraryGenerator was not initialized.");
15-
1613
[ImportingConstructor]
17-
public OpenAILibraryGenerator(GeneratorContext context) : base(context)
18-
{
19-
s_instance = this;
20-
}
14+
public OpenAILibraryGenerator(GeneratorContext context) : base(context) { }
2115

2216
protected override void Configure()
2317
{

0 commit comments

Comments
 (0)