Skip to content

Commit

Permalink
internal: apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Eliott Bouhana <[email protected]>
  • Loading branch information
darccio and eliottness authored Jul 12, 2024
1 parent c3c01f3 commit 3d10986
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/gitmetadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func getTagsFromBinary(readBuildInfo func() (*debug.BuildInfo, bool)) map[string
return res
}

// GetGitMetadataTags returns git metadata tags
// GetGitMetadataTags returns git metadata tags. Returned map is read-only
func GetGitMetadataTags() map[string]string {
initOnce.Do(initGitMetadataTags)
return gitMetadataTags
Expand All @@ -117,7 +117,7 @@ func initGitMetadataTags() {
}
}

// RefreshGitMetadataTags reset cached metadata tags
// RefreshGitMetadataTags reset cached metadata tags. NOT thread-safe, use for testing only
func RefreshGitMetadataTags() {
initGitMetadataTags()
}
Expand Down

0 comments on commit 3d10986

Please sign in to comment.