Skip to content

Commit 0e09c33

Browse files
committed
remove unnecessary safe escape code
1 parent 556498f commit 0e09c33

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

generators/go-v2/sdk/src/reference/EndpointSnippetsGenerator.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,6 @@ export class EndpointSnippetsGenerator {
2929
}
3030

3131
public async populateSnippetsCache(): Promise<void> {
32-
if (this.snippetsCacheInitialized) {
33-
return;
34-
}
35-
3632
const endpointSnippetsById = new Map<string, EndpointSnippets>();
3733
const dynamicIr = this.context.ir.dynamic;
3834

@@ -102,8 +98,6 @@ export class EndpointSnippetsGenerator {
10298
endpointSnippetsById.forEach((value, key) => {
10399
this.snippetsCache.set(key, value);
104100
});
105-
106-
this.snippetsCacheInitialized = true;
107101
}
108102

109103
public getSnippetsForEndpoint(endpointId: string): EndpointSnippets | undefined {

0 commit comments

Comments
 (0)