summaryrefslogtreecommitdiffhomepage
path: root/tools/go_marshal/analysis
diff options
context:
space:
mode:
Diffstat (limited to 'tools/go_marshal/analysis')
-rw-r--r--tools/go_marshal/analysis/analysis_unsafe.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/go_marshal/analysis/analysis_unsafe.go b/tools/go_marshal/analysis/analysis_unsafe.go
index cd55cf5cb..7a3d6bbea 100644
--- a/tools/go_marshal/analysis/analysis_unsafe.go
+++ b/tools/go_marshal/analysis/analysis_unsafe.go
@@ -81,7 +81,7 @@ func RandomizeValue(x interface{}) {
// This is used for zeroing padding fields after calling RandomizeValue.
func reflectZeroPaddingFields(r reflect.Type, data []byte, zero bool) {
if zero {
- for i, _ := range data {
+ for i := range data {
data[i] = 0
}
}