From d090b9c442de1ec212c73f0b157d3cddf7ec892c Mon Sep 17 00:00:00 2001 From: Mentlegen <9807008+gentlementlegen@users.noreply.github.com> Date: Tue, 3 Sep 2024 15:47:47 +0900 Subject: [PATCH] chore: refactored empty string --- src/github/utils/plugins.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/github/utils/plugins.ts b/src/github/utils/plugins.ts index 94021f1..a084694 100644 --- a/src/github/utils/plugins.ts +++ b/src/github/utils/plugins.ts @@ -18,7 +18,7 @@ export function getManifest(context: GitHubContext, plugin: string | GithubPlugi } async function fetchActionManifest(context: GitHubContext<"issue_comment.created">, { owner, repo, ref }: GithubPlugin): Promise { - const manifestKey = `${owner}:${repo}:${ref ?? ""}`; + const manifestKey = ref ? `${owner}:${repo}:${ref}` : `${owner}:${repo}`; if (_manifestCache[manifestKey]) { return _manifestCache[manifestKey]; }