瀏覽代碼

Rename mapping index variable for readability, NFC

Raul Silvera 9 年之前
父節點
當前提交
fb2d76f778
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. 2
    2
      internal/symbolizer/symbolizer.go

+ 2
- 2
internal/symbolizer/symbolizer.go 查看文件

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