Просмотр исходного кода

Rename mapping index variable for readability, NFC

Raul Silvera 9 лет назад
Родитель
Сommit
fb2d76f778
1 измененных файлов: 2 добавлений и 2 удалений
  1. 2
    2
      internal/symbolizer/symbolizer.go

+ 2
- 2
internal/symbolizer/symbolizer.go Просмотреть файл

@@ -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