zrhoffman commented on code in PR #7069:
URL: https://github.com/apache/trafficcontrol/pull/7069#discussion_r974613948
##########
cache-config/t3c-check-refs/config/config.go:
##########
@@ -106,13 +112,12 @@ func InitConfig(appVersion string, gitRevision string)
(Cfg, error) {
return Cfg{}, errors.New("Too many verbose options. The maximum
log verbosity level is 2 (-vv or --verbose=2) for errors (0), warnings (1), and
info (2)")
}
+ filesAddingInput := false
filesAddingSet := map[string]struct{}{}
- for _, fileAdding := range strings.Split(*filesAdding, ",") {
- fileAdding := strings.TrimSpace(fileAdding)
- if fileAdding == "" {
- continue
- }
- filesAddingSet[fileAdding] = struct{}{}
+ if strings.ToLower(strings.TrimSpace(*filesAdding)) ==
ArgFilesAddingInput {
Review Comment:
Why `strings.ToLower()`?
--
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]