浏览代码

s/buildId/buildID/ as per guidelines (#90)

Raul Silvera 8 年前
父节点
当前提交
8b5491579f
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3
    3
      internal/driver/fetch.go

+ 3
- 3
internal/driver/fetch.go 查看文件

351
 	}
351
 	}
352
 	// Replace executable filename/buildID with the overrides from source.
352
 	// Replace executable filename/buildID with the overrides from source.
353
 	// Assumes the executable is the first Mapping entry.
353
 	// Assumes the executable is the first Mapping entry.
354
-	if execName, buildId := s.ExecName, s.BuildID; execName != "" || buildId != "" {
354
+	if execName, buildID := s.ExecName, s.BuildID; execName != "" || buildID != "" {
355
 		if len(p.Mapping) == 0 {
355
 		if len(p.Mapping) == 0 {
356
 			// If there are no mappings, add a fake mapping to attempt symbolization.
356
 			// If there are no mappings, add a fake mapping to attempt symbolization.
357
 			// This is useful for some profiles generated by the golang runtime, which
357
 			// This is useful for some profiles generated by the golang runtime, which
367
 		if execName != "" {
367
 		if execName != "" {
368
 			m.File = execName
368
 			m.File = execName
369
 		}
369
 		}
370
-		if buildId != "" {
371
-			m.BuildID = buildId
370
+		if buildID != "" {
371
+			m.BuildID = buildID
372
 		}
372
 		}
373
 	}
373
 	}
374
 }
374
 }