From 03a92aeca713ccbca46eca4695effd77454d6bd0 Mon Sep 17 00:00:00 2001 From: Ricardo Maraschini Date: Wed, 6 Nov 2024 16:14:46 +0100 Subject: [PATCH] chore: add some comments --- pkg/ec/lint.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/ec/lint.go b/pkg/ec/lint.go index 33770ef..c7cd7a9 100644 --- a/pkg/ec/lint.go +++ b/pkg/ec/lint.go @@ -92,6 +92,7 @@ func checkIfECVersionExists(version string) (*EmbeddedClusterVersion, bool, erro rwMutex.RUnlock() if found { + // if it is cached then it is not a pre-release. return &ecVersion, true, nil } @@ -122,6 +123,7 @@ func checkIfECVersionExists(version string) (*EmbeddedClusterVersion, bool, erro } if newVersion.PreRelease { + // we do not cache pre-release versions. return &newVersion, true, nil }