diff --git a/pkg/node/lethean.go b/pkg/node/lethean.go index fc24ca0..c3404b3 100644 --- a/pkg/node/lethean.go +++ b/pkg/node/lethean.go @@ -144,9 +144,9 @@ func DiscoverGateways(daemonURL string) []PoolGateway { func parseComment(comment string) map[string]string { result := make(map[string]string) for _, part := range strings.Split(comment, ";") { - idx := strings.IndexByte(part, '=') - if idx > 0 { - result[part[:idx]] = part[idx+1:] + separatorIndex := strings.IndexByte(part, '=') + if separatorIndex > 0 { + result[part[:separatorIndex]] = part[separatorIndex+1:] } } return result