diff --git a/runtime/Go/antlr/prediction_mode.go b/runtime/Go/antlr/prediction_mode.go index f2cb180c4..afdf0f1bb 100644 --- a/runtime/Go/antlr/prediction_mode.go +++ b/runtime/Go/antlr/prediction_mode.go @@ -501,7 +501,7 @@ func PredictionModegetConflictingAltSubsets(configs ATNConfigSet) []*BitSet { var values = make([]*BitSet, 0) - for k, _ := range configToAlts { + for k := range configToAlts { if strings.Index(k, "key_") != 0 { continue } diff --git a/runtime/Go/antlr/utils.go b/runtime/Go/antlr/utils.go index 6c99298e3..f9bc1dbcc 100644 --- a/runtime/Go/antlr/utils.go +++ b/runtime/Go/antlr/utils.go @@ -161,7 +161,7 @@ func (s *Set) contains(value interface{}) bool { func (s *Set) values() []interface{} { var l = make([]interface{}, 0) - for key, _ := range s.data { + for key := range s.data { if strings.Index(key, "hash_") == 0 { l = append(l, s.data[key]...) } @@ -201,7 +201,7 @@ func (b *BitSet) clear(index int) { } func (b *BitSet) or(set *BitSet) { - for k, _ := range set.data { + for k := range set.data { b.add(k) } } @@ -217,7 +217,7 @@ func (b *BitSet) contains(value int) bool { func (b *BitSet) values() []int { ks := make([]int, len(b.data)) i := 0 - for k, _ := range b.data { + for k := range b.data { ks[i] = k i++ } @@ -227,7 +227,7 @@ func (b *BitSet) values() []int { func (b *BitSet) minValue() int { min := 2147483647 - for k, _ := range b.data { + for k := range b.data { if k < min { min = k }