Fix go vet error
Test: none Change-Id: I40d8696c53f0059424a1a7bf860b760525813605
This commit is contained in:
@@ -119,7 +119,7 @@ func convertInstalledMap(installMaps []string) []*license_metadata_proto.Install
|
|||||||
for _, installMap := range installMaps {
|
for _, installMap := range installMaps {
|
||||||
components := strings.Split(installMap, ":")
|
components := strings.Split(installMap, ":")
|
||||||
if len(components) != 2 {
|
if len(components) != 2 {
|
||||||
panic(fmt.Errorf("install map entry %q contains %d colons, expected 1", len(components)-1))
|
panic(fmt.Errorf("install map entry %q contains %d colons, expected 1", installMap, len(components)-1))
|
||||||
}
|
}
|
||||||
ret = append(ret, &license_metadata_proto.InstallMap{
|
ret = append(ret, &license_metadata_proto.InstallMap{
|
||||||
FromPath: proto.String(components[0]),
|
FromPath: proto.String(components[0]),
|
||||||
|
Reference in New Issue
Block a user