jpappa200 commented on code in PR #7652:
URL: https://github.com/apache/trafficcontrol/pull/7652#discussion_r1272726628


##########
cache-config/t3c-apply/torequest/torequest.go:
##########
@@ -1030,6 +1034,45 @@ func (r *TrafficOpsReq) ProcessPackages() error {
        return nil
 }
 
+func pkgMetaDataToMap(pmd []string) map[string]bool {
+       pkgMap := map[string]bool{}
+       for _, pkg := range pmd {
+               pkgMap[pkg] = true
+       }
+       return pkgMap
+}
+
+func pkgMatch(pkgMetaData []string, pk string) bool {
+       for _, pkg := range pkgMetaData {
+               if ok := strings.Contains(pk, pkg); ok {

Review Comment:
   changed. `strings.Contains()` returns a bool. Asleep at the wheel I suppose.😀



##########
cache-config/t3c-apply/torequest/torequest.go:
##########
@@ -1030,6 +1034,45 @@ func (r *TrafficOpsReq) ProcessPackages() error {
        return nil
 }
 
+func pkgMetaDataToMap(pmd []string) map[string]bool {
+       pkgMap := map[string]bool{}
+       for _, pkg := range pmd {
+               pkgMap[pkg] = true
+       }
+       return pkgMap
+}
+
+func pkgMatch(pkgMetaData []string, pk string) bool {
+       for _, pkg := range pkgMetaData {
+               if ok := strings.Contains(pk, pkg); ok {

Review Comment:
   changed. `strings.Contains()` returns a bool. Asleep at the wheel I suppose.😀



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to