Skip to content

Commit

Permalink
remove junk from cache key
Browse files Browse the repository at this point in the history
  • Loading branch information
pmcelhaney committed May 6, 2024
1 parent 84a421d commit c4b911e
Show file tree
Hide file tree
Showing 2 changed files with 130 additions and 132 deletions.
4 changes: 1 addition & 3 deletions src/typescript-generator/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,7 @@ export class Script {
}

export(coder, isType = false, isDefault = false) {
const cacheKey = isDefault
? "default"
: `${coder.id}@${nodePath}:${isType}`;
const cacheKey = isDefault ? "default" : `${coder.id}:${isType}`;

if (this.cache.has(cacheKey)) {
return this.cache.get(cacheKey);
Expand Down
Loading

0 comments on commit c4b911e

Please sign in to comment.