Parcourir la source

Rename mapping index variable for readability, NFC

Raul Silvera il y a 9 ans
Parent
révision
fb2d76f778
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2
    2
      internal/symbolizer/symbolizer.go

+ 2
- 2
internal/symbolizer/symbolizer.go Voir le fichier

@@ -273,7 +273,7 @@ func newMapping(prof *profile.Profile, obj plugin.ObjTool, ui plugin.UI, force b
273 273
 	}
274 274
 
275 275
 	missingBinaries := false
276
-	for mix, m := range prof.Mapping {
276
+	for midx, m := range prof.Mapping {
277 277
 		if !mappings[m] {
278 278
 			continue
279 279
 		}
@@ -284,7 +284,7 @@ func newMapping(prof *profile.Profile, obj plugin.ObjTool, ui plugin.UI, force b
284 284
 		}
285 285
 
286 286
 		if m.File == "" {
287
-			if mix == 0 {
287
+			if midx == 0 {
288 288
 				ui.PrintErr("Main binary filename not available.\n" +
289 289
 					"Try passing the path to the main binary before the profile.")
290 290
 				continue