From b5c4ab65ff0bb440fdcd9a175fafcea67c8b2684 Mon Sep 17 00:00:00 2001 From: Bruno Borges Date: Wed, 8 Jul 2026 12:47:35 -0400 Subject: [PATCH] Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- src/util.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/util.ts b/src/util.ts index 37fae2ad..58a37dd1 100644 --- a/src/util.ts +++ b/src/util.ts @@ -179,9 +179,11 @@ export function getVersionFromFileContent( if (versionFileName == '.tool-versions' && match?.groups?.distribution) { const asdfDist = match.groups.distribution; extractedDistribution = mapAsdfDistribution(asdfDist); - core.debug( - `Parsed distribution '${extractedDistribution}' from asdf identifier '${asdfDist}'` - ); + if (extractedDistribution) { + core.debug( + `Parsed distribution '${extractedDistribution}' from asdf identifier '${asdfDist}'` + ); + } } core.debug(