cosmetic: go warnings

Test: N/A
Bug: N/A
Change-Id: I9bad2cecb350e9539344ad7d81d83c93c31e54cd
This commit is contained in:
Usta Shrestha
2022-06-23 13:45:24 -04:00
parent acd5a0c080
commit 2bc1cd96ef

View File

@@ -529,7 +529,7 @@ config_node(name = "%s",
configNodesSection := ""
labelsByConfig := map[string][]string{}
for val, _ := range context.requests {
for val := range context.requests {
labelString := fmt.Sprintf("\"@%s\"", val.label)
configString := getConfigString(val)
labelsByConfig[configString] = append(labelsByConfig[configString], labelString)
@@ -567,7 +567,7 @@ func indent(original string) string {
// request type.
func (context *bazelContext) cqueryStarlarkFileContents() []byte {
requestTypeToCqueryIdEntries := map[cqueryRequest][]string{}
for val, _ := range context.requests {
for val := range context.requests {
cqueryId := getCqueryId(val)
mapEntryString := fmt.Sprintf("%q : True", cqueryId)
requestTypeToCqueryIdEntries[val.requestType] =