checkmgr/metrics.go
func countNewTags(currTags []string, newTags []string) int {
	if len(newTags) == 0 {
		return 0
	}

	if len(currTags) == 0 {
		return len(newTags)
	}

	newTagCount := 0

	for _, newTag := range newTags {
		found := false
		for _, currTag := range currTags {
			if newTag == currTag {
				found = true
				break
			}
		}
		if !found {
			newTagCount++
		}
	}

	return newTagCount
}
func countNewTags(currTags []string, newTags []string) int {
	if len(newTags) == 0 {
		return 0
	}

	if len(currTags) == 0 {
		return len(newTags)
	}

	newTagCount := 0

	for _, newTag := range newTags {
		found := false
		for _, currTag := range currTags {
			if newTag == currTag {
				found = true
				break
			}
		}
		if !found {
			newTagCount++
		}
	}

	return newTagCount
}
func countNewTags ( currTags [ ] string , newTags [ ] string ) int { if len ( newTags ) == 0 { return 0 } if len ( currTags ) == 0 { return len ( newTags ) } newTagCount := 0 for _ , newTag := range newTags { found := false for _ , currTag := range currTags { if newTag == currTag { found = true break } } if ! found { newTagCount ++ } } return newTagCount }
// countNewTags returns a count of new tags which do not exist in the current list of tags
countNewTags returns a count of new tags which do not exist in the current list of tags