Skip to content

Commit

Permalink
chore: add some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardomaraschini committed Nov 6, 2024
1 parent 4b9fea0 commit 03a92ae
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/ec/lint.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down Expand Up @@ -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
}

Expand Down

0 comments on commit 03a92ae

Please sign in to comment.