rimashah25 commented on code in PR #7099:
URL: https://github.com/apache/trafficcontrol/pull/7099#discussion_r994201821


##########
traffic_ops/traffic_ops_golang/deliveryservice/servers/servers.go:
##########
@@ -1023,6 +1027,7 @@ func scanDSInfoRow(row *sql.Row) (DSInfo, bool, error) {
                }
                return DSInfo{}, false, fmt.Errorf("querying delivery service 
server ds info: %v", err)
        }
+       di.Active = active == tc.DSActiveStateActive

Review Comment:
   I am so lost here, why is a boolean being assigned a string and then use a 
comparison operator?



-- 
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